picture

Visual Studio 2005. Error “An existing connection was forcibly closed by the remote host ” and “An operation was attempted on something that is not a socket”.

Developing an application for  Smart Device, I faced a curious problem. Suddenly I could not deploy my project to my PDA. The concole of Visual Studio showed the only message: An existing connection was forcibly closed by the remote host, in my localized German version it was Eine vorhandene Verbindung wurde vom Remotehost geschlossen. Knowing Visual Studio quite well, I thought it was mistaking and I repeated the deployment process. Now the error message was An operation was attempted on something that is not a socket (German: Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist). Ok, the nightmare began. I cleaned the project, compiled and recompiled it hundred times, changed PDAs, checked windows GAC, patched the regestry etc. Nothing helped…

The cause was really strange. In my project there are some files that are attached to my project as Content . They have the property value copy if newer.  Having changed this property to always copy has solved the problem. Oh ye. After several wasted hours I could finally continue my work.


Comments to the Post

Leave a Reply

For spam detection purposes, please copy the number 3026 to the field below: