Solved

the auto created ASPX from Silverlight application will not run

Posted on 2010-09-15
12
981 Views
Last Modified: 2012-05-10
Hi,

We used VS2010 to create a silverlight app, and an aspx and html page were being auto generated. The html works fine, but, for unknown reason, the aspx will not run. When we check under IE, it shows
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; Tablet PC 2.0; FDM; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Thu, 16 Sep 2010 03:05:09 UTC


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

Line: 57
Char: 13
Code: 0
URI:

Can anyone tell us where is the problem please? Thanks.

We are hosted the page @ Windows Server 2008 R2 with IIS 7
0
Comment
Question by:cybeh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
12 Comments
 
LVL 7

Expert Comment

by:meispisces
ID: 33689940
What were the steps that you follow to create a silverlight app, the one  that had aspx and html page auto generated?

Thanks
0
 
LVL 7

Expert Comment

by:meispisces
ID: 33689969
Please ignore my previous comment.

I have got your solution. This error comes as you are using Windows Server. For that you need to add MIME types for silverlight which are .xap/.xaml/ .xbap

For more info: http://forums.silverlight.net/forums/p/111126/309207.aspx

Hope this helps!

Thanks

0
 
LVL 7

Expert Comment

by:meispisces
ID: 33689983
See Detail steps to be configured in Windows Server (ie in IIS) from here: http://blog.stronico.com/2009/10/how-to-solve-unhandled-error-in-silverlight-application-code-2104/

thanks!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 14

Expert Comment

by:Dhanasekaran Sengodan
ID: 33689987
0
 
LVL 7

Expert Comment

by:meispisces
ID: 33694400
@cybeh: Is your problem resolved? Please comment.

thanks!
0
 
LVL 1

Author Comment

by:cybeh
ID: 33698575
Hi,

Thanks for all the reply. As mentioned, we are using Windows server 2008, IIS7 which silverlight are "reset". But, as extra steps, I still check to make sure all the mime type are there.

And another question would be, if silverlight is not supported, then, most prolly the .html will not run as well? But, seems like the same file with .html were able to host the silverlight application without any issue.

Maybe I overlook some of the suggestion? Please advise.
0
 
LVL 7

Expert Comment

by:meispisces
ID: 33698832
>>> we are using Windows server 2008, IIS7 which silverlight are "reset"?

What do you mean by this?

Plus, if SL is not supported then i guess that .html will run as it has nothing to do with html.

Hope i have resolve your queries.

Thanks!
0
 
LVL 1

Author Comment

by:cybeh
ID: 33698854
Wow.. finally got my issue solved. It's actually nothing to do with the server setting, but, were set the wrong "path" for my silverlight application in my ASPX.

Thanks everyone for the support
0
 
LVL 7

Expert Comment

by:meispisces
ID: 33743325
Happy to see that you have found out the solution. Did the solution worked for you? if not let me knw, as i need to lookout for the same.
thanks. :-)
0
 
LVL 1

Accepted Solution

by:
cybeh earned 0 total points
ID: 33744625
Hi,

Just an extra info over here.
1. If the server does not support SL, then, regardless of HTML or ASPX, both will not run.

For my issue, it due to a silly issue
<param name="source" value="ClientBin/myApp.xap"/> <- When the system auto generated, the value was "Bin/myApp.xap", where system can't find the .xap.

0
 
LVL 7

Expert Comment

by:meispisces
ID: 33756469
I guess experts (including me) have invested their time in resolving the issue, hence i think the most deserving expert should be awarded the points.

Rest is upto EE Admin, Moderators & to author.

Thanks!
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS Authentication Error 401 16 76
Shared Service Environment 2 55
Left aligned $ and right aligned amount ASP.NET 7 46
transfer content to new site design 7 49
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question