By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,356 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,356 IT Pros & Developers. It's quick & easy.

RaiseEvent not working without VS installed

P: n/a
Hi all!

I'm having some weird behaviour in a .NET application i'm developing.
I'll try to explain:

I've created a Class that wraps an asynchronous socket.
When connect callback is called, i raise a class event :

' Create socket
sock = New Socket(AddressFamily.InterNetwork, _
SocketType.Stream, ProtocolType.Tcp)
' Launch connection
sock.BeginConnect(EP, AddressOf ConnectCallback, Nothing)
End Sub

Private Sub ConnectCallback(ByVal ar As IAsyncResult)
'MsgBox("ConnectCallback called")
If Not sock.Connected Then
sock = Nothing
RaiseEvent Disconnected()
Exit Sub
End If
MsgBox("After EndConnect")
RaiseEvent Connected()
'MsgBox("After RaiseEvent")
' Start reception ...

It works fine on my PC, having installed Visual Studio 2003 (7.1.3088)
and .NET framework 1.1.4322 SP1
My problem is that when i deploy this application to other PC's that
dont have VisualStudio installed, the program hangs at the RaiseEvent
call (that is "After EndConnect" box is shown, "After RaiseEvent" box
is not), and the event handler (which has also another MsgBox as the
first command in the sub) isnt called either.
I've checked that they already have .NET framework 1.1.4322 SP1
installed, but i cant make it to work.

Any ideas?

Thanks a Lot,

Aug 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi guys!

I once found the same problem and wasn't able to solve it.
Since I was in a hurry I just left the asynchronous sockets behind and
used a simple TcpClient.
Maybe this is not appropiate for you, but I don't know what can be
causing that strange behaviour.
Have you checked other DLL dependencies?


Aug 30 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.