Skip to main content

Microsoft Silverlight

Answered Question Deploy Silverlight Application on the webRSS Feed

(0)

Gianni_ITA
Gianni_ITA

Member

Member

2 points

8 Posts

Deploy Silverlight Application on the web

Hi, I made a simple Silverlight Application with VIsual Studio. It works fine but when I try to publish it on a web server I see just a blank page.

Can you explain to me what i have to do to publish this silverlight application?

 

thanks a lot

Gianni 

chad.campbell
chad.cam...

Participant

Participant

1918 points

332 Posts

Silverlight MVP
Answered Question

Re: Deploy Silverlight Application on the web

Hi Gianni,

Does your web server have accept the .xaml mime type?  If not, you will either need to add it , or if you cannot add the .xaml mime type, you can rename your .xaml content to .xml and update your references and it should work.

If this answers your question, please select "mark as answer", otherwise, please post a follow up question.

Thank you,

Chad Campbell

If this answers your question, please select "mark as answer", otherwise, please post a follow up question. Thanks!
Chad Campbell

Author of Silverlight 2.0 in Action Blog: http://cornucopia30.blogspot.com

yqwj_2008
yqwj_2008

Member

Member

6 points

5 Posts

Re: Deploy Silverlight Application on the web

Hey chad

how to add xaml MIME type? Config it in IIS? like IIS->WebSites->"My virtualDiretory"->Property->VirtualDirectory->Configutration->Mapping ?

But which assembly should i map ".xaml" to?

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Answered Question

Re: Deploy Silverlight Application on the web

You can define the MIME mapping for a complete web site or a virtual directory, open the properties window, HTTP Headers tab. File Types button at the bottom. Select "New Type". Extension should be .xaml and the Content Type should be application/xaml+xml

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

chad.campbell
chad.cam...

Participant

Participant

1918 points

332 Posts

Silverlight MVP

Re: Deploy Silverlight Application on the web

Sorry yqwj_2008,

For some reason I overlooked this followup question.  However, it looks like y_makram answered the question.

If this answers your question, please select "mark as answer", otherwise, please post a follow up question. Thanks!
Chad Campbell

Author of Silverlight 2.0 in Action Blog: http://cornucopia30.blogspot.com

GearWorld
GearWorld

Participant

Participant

840 points

1,102 Posts

Re: Deploy Silverlight Application on the web

Hi,

 

Would you mind to explain how you did deploy your entire Silverlight  project ?

Thank you

chad.campbell
chad.cam...

Participant

Participant

1918 points

332 Posts

Silverlight MVP

Re: Deploy Silverlight Application on the web

I hope this link helps you: http://www.hostmysite.com/support/dedicated/IIS/newmime/

If this answers your question, please select "mark as answer", otherwise, please post a follow up question. Thanks!
Chad Campbell

Author of Silverlight 2.0 in Action Blog: http://cornucopia30.blogspot.com

udayshiva
udayshiva

Member

Member

2 points

2 Posts

Re: Re: Deploy Silverlight Application on the web

 AWESOME stuff y_makram....answered my question on the spot.

Thanks again

Uday 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities