[Silverlight getting started series] error: 2104 cocould not download the Silverlight application. Check Web Server Settin

Source: Internet
Author: User

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" />

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.