Error code 2104: The Silverlight application could not be downloaded. Check your Web server settings

Source: Internet
Author: User
Tags silverlight

Debugging the Silverlight program today, after you remove the. xap file under the ClientBin folder, you experience an issue that says: Error code 2104: The Silverlight application could not be downloaded. Check your Web server settings. On the Internet, many of the workarounds are to configure the MIME type of IIS, for example: http://silverlightchina.net/html/tips/2012/0922/19072.html. However, opening the IIS configuration found that none of these configurations were problematic, and finally found a workaround on the Microsoft Forum.

The first step: Check the project in the Web directory under ClientBin there is no build. xap file (do not belittle, in some cases if we do not manually ctrl+shift+b compiled under Slu,vs will not compile at the time of publishing OH)

The second step: check that the source of the Silverlight project's hosting site is configured correctly, such as <param name= "source" value= "Clientbin/tutorial_1" in testpage.html. The value of the source of the xap "/>" corresponds to the generated file (hey, I'm a little cautious)

Step three: Check the MIME settings (this, believe you, oh, so pass it)

  

is to solve the problem by the second step in these three steps.

http://social.msdn.microsoft.com/Forums/it-IT/silverlightzhchs/thread/bde5ae33-306a-4358-8729-3524f3a14488

================================================================================================

I was having problems removing the. xap file because I could not debug it. Later I did not know what to read after accidentally put the following configuration specific folder configured to "Yes", This creates the Debug directory under the ClientBin directory and places the. aspx file underneath it, but it is not found in the ClientBin directory, and of course, if you change the path in. aspx clientbin/debug/ HELLO.XAP, the relative path in the Silverlight code will change (more than one clientbin/), so just configure the configuration-specific folder to No.

Error code 2104: The Silverlight application could not be downloaded. Check your Web server settings

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.