I have a problem with the installer of .NET Microframework SDK 4.2. I work with OS Win7, Visual Studio 2010 and I have downloaded the programs for to work with Netduino plus 2 from official website. I am doing test of exception error on the code and when I run the code line of the socket the program stops and exits the compiler. Obviously I want to treat socket error when network cable is disconnected but I get the error mentioned above.
Deputy of the code to treat socket exception error.
Socket.Connect() flagException = False Debug.Print("Connected Socket") 'following code ' ERROR CONECTION TCP-IP ==> System.Net.Sockets.SocketException Catch errorSocket As SocketException 'Socket.Close() 'Debug.Print("ethernet connection") flagException = True Finally
When it is evaluated several times to check the network connection crashes the program and set no exception error. Can you help me? Thanks