Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Can not run Silverlight App with VS2008 Website
6 replies. Latest Post by xsdf on August 4, 2008.
(0)
hemal_30...
Member
9 points
22 Posts
07-20-2008 8:14 AM |
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
davesmits
624 points
198 Posts
07-20-2008 10:41 AM |
Do use the development server or iis? if you use iis you must add .xap to the mine types
07-20-2008 1:01 PM |
Ok xap registered and problem solved
dbaechtel
59 points
207 Posts
07-20-2008 1:45 PM |
Can you tell me how to register xap and MIME for VS2008 ?
07-20-2008 2:10 PM |
see: http://simplesilverlight.wordpress.com/2008/03/07/register-xap-file-in-iis/
07-21-2008 12:42 AM |
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
xsdf
131 points
08-04-2008 11:09 PM |
Good answer.