Today, we encountered a strange error:
Line: 56
Error: unhandled error in Silverlight Application
Code: 2104
Category: initializeerror
Message: cocould not download the Silverlight application. Check Web Server Settings
I searched for the solution on the Internet. Most of them are IIS configuration and setting. xap file types. However, my webserver for vs2010 is not IIS at all.
In other words, to reinstall Silverlight, I uninstalled Silverlight and reinstalled Silverlight and Silverlight developer runtime. The result is the same.
(In short, don't look at the pop-up error Web Server setting. In fact, the reasons are quite different !!)
I also renamed clientbin/*. xap to *. Zip, decompress it, and compare it with the original working version.
Finally, the foreigner reminded me that I had renamed the project a while ago and the namespace had changed ,. the xap name has also changed, but the xap entry pointed to in silverlightcontrolhost has not been modified, resulting in an error.
1:<Div ID="Silverlightcontrolhost">
2:<Object Data="Data: Application/x-silverlight-2 ," Type="Application/x-silverlight-2" Width="100%" Height="100%">
3:<Param Name="Source" Value="Clientbin/abcdefg. hijklmn. xap"/>
4:<Param Name="Onerror" Value="Onsilverlighterror" />