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