This exception comes due to simple reason that there are MIME Types missing for your silverlight Application which gives you following exception in your IE,
To reslove the same you simply need to add the MIME types to your WebSite on IIS. Select HTTP Headers Tab under the Properties. Click on MIME Types and add
.xaml application/xaml+xml
.xap application/octet-stream
You also need to enable the Content Expiration
Now your silverlight object will be loaded. If you still face problems try checking up on your permissions

#1 by Lucy on March 11, 2010 - 1:27 am
Quote
Hoping to spare someone the hours of pain it took me to figure this out. On one computer it was an issue of not having the IIS correctly up and set.
On the other…straight app with nothing on it wouldn’t run and returned the error. The fix was from the menu bar Build>Build Silverlight Application.
It then seems to work properly.