Skip to main content

Microsoft Silverlight

Answered Question Silverlight not working when hosted in localhost serverRSS Feed

(0)

diku
diku

Member

Member

2 points

2 Posts

Silverlight not working when hosted in localhost server

Hi,

I have created a silverlight application and it is working fine in vs2008 as well as in ms blend. but when i publish that site to iis its not showing anything in the browser. the site is working properly but silverlight controls are not shown on the page.

please help me....

thanks.

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

Answered Question

Re: Silverlight not working when hosted in localhost server

Are you sure that you have MIME type registered on IIS? 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.

ranjith_ch
ranjith_ch

Member

Member

6 points

4 Posts

Re: Silverlight not working when hosted in localhost server

Hi, I created a sample silverlight app and i have a 1.1 alpha plugin installed. I use vs2008 for developement. I tried hosting it using IIS but it never seems to be working. I get the following error message(only half the error message pasted).

 

Startup URI: http://rchevan-mobl/MySilverlight/
Application Identity: file:///C:/WINDOWS/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c3bce3770c238a49, processorArchitecture=msil, type=win32

System.Windows.Markup.XamlParseException: The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'. Line '1' Position '2'.
   at System.Windows.Markup.XamlParser.ThrowException(String message, Int32 lineNumber, Int32 linePosition)
   at System.Windows.Markup.XamlParser.ThrowException(SRID id, String value1, String value2, Int32 lineNumber, Int32 linePosition)
   at System.Windows.Markup.XamlParser.WriteUnknownTagStart(XamlUnknownTagStartNode xamlUnknownTagStartNode)
   at System.Windows.Markup.XamlParser.ProcessXamlNode(XamlNode xamlNode, Boolean& cleanup, Boolean& done)
   at System.Windows.Markup.XamlParser.ReadXaml(Boolean singleRecordMode)
   at System.Windows.Markup.XamlParser.GetParseMode()
   at System.Windows.Markup.XamlTreeBuilder.ParseFragment()
   at System.Windows.Markup.TreeBuilder.Parse()
   at System.Windows.Markup.XamlReader.LoadAsync(Stream stream, ParserContext parserContext)

Please help

 -Ranjith

diku
diku

Member

Member

2 points

2 Posts

Re: Re: Silverlight not working when hosted in localhost server

Thanks for help. My app. is working fine when hosted on IIS.

thanks again.....

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities