Exception was thrown: System.Net.Sockets.SocketException


I am getting this exception when I am working with PPP on my Fez Cobra iii. It works sometimes for a day sometimes longer and then suddenly this starts.

Do I need to close something or what is your suggestion to stop getting this. It is as if I am losing PPP status - I am still connected to the network and have an IP address but this code fails:

req = my request object.

using (var respStream = req.GetRequestStream())


Any Ideas?


You didn’t specify which exception your code got. The exception should tell you what went wrong. Your code then needs to handle the error case.