Skip to main content
Home Forums General Silverlight Hosting and Streaming Silverlight not working when hosted in localhost server
3 replies. Latest Post by diku on February 21, 2008.
(0)
diku
Member
2 points
2 Posts
02-03-2008 4:02 AM |
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
Contributor
6172 points
1,233 Posts
02-03-2008 6:12 AM |
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
application/xaml+xml
ranjith_ch
6 points
4 Posts
02-14-2008 9:13 AM |
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
02-21-2008 3:32 AM |
Thanks for help. My app. is working fine when hosted on IIS.
thanks again.....