We are encountering a strange behaviour using the network share of Windows CE 6.
First something about the application. It is written in c# and uses the .Net Compact Framework 3.5.
To establish a network share we use the Windows Function “WNetAddConnection3” and to close the share we use “WNetCancelConnection2”. The Program produces some measurement data and wants to transfer it to a server. Every time we want to transfer the data we establish a connection, copy the files and then terminate the network share (this was a request by our customer because he don’t want a permanent connection).
This function is working fine for many times, but after about 1000 established connections the login method changes and the server rejects the connection.
In the working connections the Bit “Extended Security Negotiation: Extended security negotiation is supported” from the SMB Protocol is set to 1. In the non working authentification this bit is set to 0.
The only way to get the SMB protocol working again is to reset the device. I added a Wireshark Capture of this behavior. The problem happens in the Packet “Session Setup AndX Request, NTLMSSP_NEGOTIATE”.
I hope soeone could help me with that problem.