Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I am working on SharePoint application, with silverlight. My visual webpart containing reference of .xap file. When I try to browse site with IE, I am getting error in status bar "Unhandled Error in SilverLight Application Code:2014...", looks like javascript error.

I have searched on google, mostly sites suggest that IIS does not contain MIME type for .xap, .bap, or .xaml. I have checked with my IIS 7.0. It contains all describe extension. What could be other possibility?

I am wonder, if someone help me on this

Thanks in advance
Posted

1 solution

0) Sometimes MIME types disappear from IIS if you upgrade .Net on the server. Verify that they are in fact there, and ythat they ware correct.

1) Verify that the path is correct in the aspx file that loads the silverlight app. If you're missing the tilde, it will fail. It should be something like this:

~/ClientBin/MySilverlightModule.xap
 
Share this answer
 
v2
Comments
Khaniya 19-Sep-11 14:20pm    
Hey John, thanks for your answer. I am not using ~/ClientBin/MySilverlightModule.xap" file as there is no web application and database even. There are two project in my solution 1. Silverlight application and 2. Sharepoint Visual Webpart project. I have given reference of silverlight application's ouput .xap file to module in webpart. Can you advice me what is wrong I am doing here?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900