User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 423,751 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,315 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 964 | Replies: 8
Reply
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

.Net Framework 2.0 Error Reporting ID: 5000

  #1  
Apr 9th, 2008
I made a network chat program on my desktop pc and it works fine, but when I try to run it on my laptop it does not work and comes up with this error: http://ecp-clan.frih.net/untitled.PNG.

Here is a description of the error:
EventType clr20r3, P1 p2pchat.exe, P2 1.0.0.0, P3 47fc0f45, P4 p2pchat, P5 1.0.0.0, P6 47fc0f45, P7 d, P8 c6, P9 system.invalidoperationexception, P10 NIL.

Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation: niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all 
Rep Power: 11
Solved Threads: 185
niek_e's Avatar
niek_e niek_e is offline Offline
Posting Virtuoso

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #2  
Apr 9th, 2008
You're probably messing with memory that isn't yours, or accessing a file that is accessed at the same time by something else, or writing to a socket that was closed or never opened, or ....

Without seeing your code, it just a guessing game
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
Reply With Quote  
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #3  
Apr 9th, 2008
Ok and how would I post that? Should I upload the whole solution?

Edit: Also, I have discovered that it happens with any program that has winsock, because another application that I wrote which doesn't use winsock works fine.
Last edited by munkey_boy : Apr 9th, 2008 at 4:57 am. Reason: discovery :P
Reply With Quote  
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation: niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all 
Rep Power: 11
Solved Threads: 185
niek_e's Avatar
niek_e niek_e is offline Offline
Posting Virtuoso

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #4  
Apr 9th, 2008
If you think that winsock is the problem, then post all the code that uses it here. Also initialization.
be sure to use [code] your code here [/code] tags

Niek
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
Reply With Quote  
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #5  
Apr 9th, 2008
Protocol is UDP, Remote Host is 255.255.255.255, Local Port is 1 and Remote Port is 1. But I don't think it's the port that is the problem as my other winsock program only uses Winsock.LocalIP() and no ports. My Winsock code is:

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
        Dim dataOut As String

        dataOut = txtName.Text & ": " & txtMsg.Text

        AxWinsock1.SendData(dataOut)

        txtMsg.Clear()

    End Sub

    Private Sub AxWinsock1_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles AxWinsock1.DataArrival
        Dim dataIn As String

        dataIn = 0

        AxWinsock1.GetData(dataIn)

        txtChat.Text = txtChat.Text & dataIn & vbNewLine

    End Sub
End Class

Edit: And thanks for helping me Niek.
Last edited by munkey_boy : Apr 9th, 2008 at 5:48 am.
Reply With Quote  
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #6  
Apr 10th, 2008
More info: I tested it on about 7 computers, only 2 of them have vb.net 2008 installed and they were the only two that it worked on. I'm not sure what it could be, but it probably has something to do with vb.net not being installed.
Reply With Quote  
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation: niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all niek_e is a name known to all 
Rep Power: 11
Solved Threads: 185
niek_e's Avatar
niek_e niek_e is offline Offline
Posting Virtuoso

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #7  
Apr 10th, 2008
Do the other PC's have .net 2.0 installed?
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
Reply With Quote  
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #8  
Apr 10th, 2008
Yes, well I know for sure that one of them does as it is my laptop.
Reply With Quote  
Join Date: Apr 2008
Posts: 6
Reputation: munkey_boy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munkey_boy munkey_boy is offline Offline
Newbie Poster

Re: .Net Framework 2.0 Error Reporting ID: 5000

  #9  
Apr 10th, 2008
Sorry this was an accidental double post, could a moderator please delete this?
Last edited by munkey_boy : Apr 10th, 2008 at 6:52 am. Reason: Accident
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 1:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC