Skip to main content

Microsoft Silverlight

Answered Question Can not run Silverlight App with VS2008 WebsiteRSS Feed

(0)

hemal_301080
hemal_30...

Member

Member

9 points

22 Posts

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

davesmits
davesmits

Member

Member

624 points

198 Posts

Answered Question

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

hemal_301080
hemal_30...

Member

Member

9 points

22 Posts

Re: Can not run Silverlight App with VS2008 Website

Ok xap registered and problem solved

Hemal Rathod
Bhavnagar,Gujarat
India

dbaechtel
dbaechtel

Member

Member

59 points

207 Posts

Re: Can not run Silverlight App with VS2008 Website

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

davesmits
davesmits

Member

Member

624 points

198 Posts

Re: Can not run Silverlight App with VS2008 Website

see: http://simplesilverlight.wordpress.com/2008/03/07/register-xap-file-in-iis/

hemal_301080
hemal_30...

Member

Member

9 points

22 Posts

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

xsdf
xsdf

Member

Member

149 points

227 Posts

Re: Re: Can not run Silverlight App with VS2008 Website

 Good answer.

************************************
To be or not to be, it's not a question ,it's life.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities