I know that I don't have a normal setup, but here it is:
I work in a computer lab, and the computers run on a disk image using Deep Freeze and
Each time you login to Windows 7, I believe that it is initialized each login; user settings are not retained after logout.
I create a new C# 4.0 Console Application Project in Visual Studio 2010 Professional.
I paste the following code:
using System.Net.Sockets; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); } } }
Ctrl+Shift+S
F5; it runs through and terminates without any errors.
I logout of Windows and login again.
Open project in Visual Studio 2010 Professional.
F5; Argument Exception: http://pastebin.com/pSju1p76
System.Net.Sockets.SocketException was unhandled Message=An invalid argument was supplied Source=System ErrorCode=10022 NativeErrorCode=10022
What's up with this?