Can not run Silverlight App with VS2008 Website
Last post 08-04-2008 11:09 PM by xsdf. 6 replies.
Sort Posts:
07-20-2008 8:14 AM
Can not run Silverlight App with VS2008 Website

Hello

I created a asp.net site in VS2008 with AJAX. To the same solution i added another silverlight 2 beta 2 project which contains some animation.

Now in asp.net page, i placed silverlight control and i choose source as .xap file from the silverlight project.

Now when i run that asp.net page, error says.

Sys.invalidoperationexception....Could not download silverlight application. Check web server settings.

How can i run silverlight xap file in asp.net page smoothly? That silverlight project runs fine seperately with a readymade test page

Thanks

 

Hemal Rathod
Bhavnagar,Gujarat
India

hemal_301080

Loading...
Joined on 12-14-2005
Bhavnagar
Posts 22
07-20-2008 10:41 AM
Marked as Answer
Re: Can not run Silverlight App with VS2008 Website

Do use the development server or iis? if you use iis you must add .xap to the mine types

Grtz Dave
http://www.familie-smits.com

davesmits

Loading...
Joined on 08-02-2007
Nederhorst den Berg, Netherlands
Posts 157
07-20-2008 1:01 PM
Re: Can not run Silverlight App with VS2008 Website

Ok xap registered and problem solved

Hemal Rathod
Bhavnagar,Gujarat
India

hemal_301080

Loading...
Joined on 12-14-2005
Bhavnagar
Posts 22
07-20-2008 1:45 PM
Re: Can not run Silverlight App with VS2008 Website

Can you tell me how to register xap and MIME  for VS2008 ?

dbaechtel

Loading...
Joined on 09-02-2007
Posts 101
07-20-2008 2:10 PM
Re: Can not run Silverlight App with VS2008 Website
davesmits

Loading...
Joined on 08-02-2007
Nederhorst den Berg, Netherlands
Posts 157
07-21-2008 12:42 AM
Re: Can not run Silverlight App with VS2008 Website

 To register MIME

go to IIS and open your virtual folder in Default web site.

right click and go to properties. go to HTTP Headers tab

go to MIME TYPES and click it.

in the box. click new and add .xap as extension and application/x-silverlight-app as mime type

Done

Hemal Rathod
Bhavnagar,Gujarat
India

hemal_301080

Loading...
Joined on 12-14-2005
Bhavnagar
Posts 22
08-04-2008 11:09 PM
Re: Re: Can not run Silverlight App with VS2008 Website

 Good answer.

************************************
To be or not to be, it is a question .

xsdf

Loading...
Joined on 08-04-2008
Posts 92
Page view counter