« Previous Next »

Thread: Silverlight 2 code 2104 error

Last post 12-25-2008 11:28 PM by thomad. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 12-23-2008, 9:09 PM

    • pannonej
    • Not Ranked
    • Joined on 11-02-2005, 2:47 AM
    • Posts 2

    Silverlight 2 code 2104 error

    I am having a Silverlight issue on my IIS7 server.  I know its IIS7 related since it runs properly in Expression and Blend.When I run my website www.forza.com on the server it comes up with:Error: Unhandled Error in Silverlight 2 ApplicationCode 2104Category: InitializeErrorMessage:  Could not download Silverlight application.  Check web server settings. When I run from any other system no error occurs and the Silverlight object is not displayed When I check theKBs it talks about MIME types: 

    .xap application/x-silverlight-app
    .xaml application/xaml+xml
    .xbap application/x-ms-xbap

     But these are already added by default 

     

  • 12-24-2008, 1:06 AM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 11:28 AM
    • Redmond
    • Posts 503

    Re: Silverlight 2 code 2104 error

    Did you get the instructions on how to enable Silverlight from http://learn.iis.net/page.aspx/262/silverlight/

    ?

    Also: if the article doesn't work for you: can you run the following command in an elevated command prompt and post the result:

    %windir%\system32\inetsrv\appcmd list config  -section:staticContent  | findstr ".xap .xbap .xaml"

    Thomas Deml
    Program Manager
    Internet Information Services
    Microsoft Corp.
  • 12-24-2008, 8:32 AM In reply to

    • pannonej
    • Not Ranked
    • Joined on 11-02-2005, 2:47 AM
    • Posts 2

    Re: Silverlight 2 code 2104 error

    Thanks, for your reply, yes I added the 3 MIME types, here is the results as requested:

    C:\Windows\System32\inetsrv\config>%windir%\system32\inetsrv\appcmd list config
     -section:staticContent  | findstr ".xap .xbap .xaml
        <mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" />
        <mimeMap fileExtension=".xap" mimeType="application/x-silverlight-app" />
        <mimeMap fileExtension=".xbap" mimeType="application/x-ms-xbap" />

    C:\Windows\System32\inetsrv\config>

  • 12-25-2008, 11:28 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 11:28 AM
    • Redmond
    • Posts 503

    Re: Silverlight 2 code 2104 error

    I doubt that IIS is causing the problem. All IIS does is to serve these file types as static files.

    Can you request the .xaml, .xap and .xbap files of your application directly, e.g. with the browser. IIS probably has nothing to do with the issue if this works.

     Thanks,

     

    Thomas Deml
    Program Manager
    Internet Information Services
    Microsoft Corp.
Page 1 of 1 (4 items)
Microsoft Communities