Skip to main content

Microsoft Silverlight

Answered Question InitializeError error #2104-silverlight app doesn't load when hosted in IIS 6RSS Feed

(0)

cbardon
cbardon

Member

Member

2 points

3 Posts

InitializeError error #2104-silverlight app doesn't load when hosted in IIS 6

I've seen a few posts on this topic, but so far, none of the answers have worked for me.  I've created a simple silverlight app to verify that it's a hosting problem, and even that fails to load in IIS.  I used VS 2008 to create a blank silverlight app, and accepted the defaults for a hosting application.  I was able to debug the application under VS with no problems.  Then I tried publishing the app to the local IIS6 (Windows Server 2003), and accessing it from a browser.  This is when I get the error from IE:

 

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; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM 8)
Timestamp: Wed, 3 Jun 2009 18:07:31 UTC


Message: Sys.InvalidOperationException: InitializeError error #2104 in control 'Xaml1': Could not download the Silverlight application. Check web server settings
Line: 453
Char: 17
Code: 0
URI: http://chris2/OCSAgentPanel/ScriptResource.axd?d=C_Hwyv9QaWxyydMeSrdnc2CuqamAwOLjgMUoTVqhiZ4KgXfbN7uN90pzhtmrvwNU9_cEEnAnFwjlce5wwtndSw2&t=ffffffffafbd6209

I checked the settings on IIS for the MIME types, and added .xap, .xaml, and .xbap to the MIME types on the machine.  What's strange though is that even after restarting IIS, I can't even download the .xap file directly-from what I can tell with a wireshark trace, I get the request for the xap file, but no response.  I can serve .xaml and .xbap files from the web server without any problems, so is there something else that needs to be done to get the .xap MIME type to work?  If nothing else, I'd expect that I'd at least be able to download the file directly.

 

Thanks for your help,

 Chris

Isaak
Isaak

Member

Member

530 points

94 Posts

Answered Question

Re: InitializeError error #2104-silverlight app doesn't load when hosted in IIS 6

if you are using the <object> to declare your application in your aspx or html file, ensure that you define the correct type. For example, for Silverlight 2 it should be:

type="application/x-silverlight-2"

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities