Recently I started to get a strange error, While loading xap file it stops! In %95 in %4 very random .
There is an error in browser's developer console
Uncaught Error: Unhandled Error in Silverlight
Application
Code: 2104
Category: InitializeError
Message: Could not download the Silverlight application. Check web server settings
When I opened all debugging options I see that
**System.Net.Sockets.SocketException occurred
Message=An existing connection was forcibly closed by the remote host Source=System ErrorCode=10054 NativeErrorCode=10054 StackTrace: at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) InnerException:
On fiddler I can clearly see that 4 of 7MB xap is downloadin and breaks!
Note: This error only occurs on iis-express and asp.net dev.server. On deployment platform everything works fine.