Subscribe Now: Feed Icon

Friday, January 28, 2011

Fixing Error 2104: Unhandled Error in Silverlight Application (IIS7)

My team leader asked me to fix a bug on an older version and I run into this error…

Error in trying to run Silverlight application:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; Tablet PC 2.0)
Timestamp: Tue, 25 Jan 2011 08:55:25 UTC

Message: Unhandled Error in Silverlight Application
Code: 2104   
Category: InitializeError      
Message: Could not download the Silverlight application. Check web server settings    

Line: 59
Char: 13
Code: 0
URI: http://localhost/pVersion/Project/Map.aspx?param1&param2=3

Googled: Unhandled Error in Silverlight Application 2104
Found this, the Location for the MIME Types in IIS7:


But I had the Mime types installed:



Decided to go back to the basics and just delete the XAP file from the web project. For some odd reason it was checked in, so I deleted it from the source control and rebuilt the Silverlight application project.



Edit (9/2/2011):

Felix from my team just had that error, his problem was a bit different: he dragged and dropped the ClientBin folder into another folder (without even noticing) and next time he tried to ran the application this error popped. We fixed the problem by dragging the folder to it’s right location…


Keywords: Error, Silverlight, MIME, XAP

IceRocket Tags: ,,,