Quick Tip: Could not load file or assembly System.Web.Silverlight.dll
Tuesday, June 10, 2008, 20:41
Had a collegue of mine who was working with the Silverlight Blueprint for SharePoint and after installing one of the examples, received a Server Error.
At first he could not view the error message, so I had my collegue turn on debugging. After this, he was able to view the error properly.
The error was:
Parser Error Message: Could not load file or assembly ‘System.Web.Silverlight, Version….’or one of its dependencies. The system cannot find the file specified.
There’s a simple solution to this error message, so I thought I’d also post it here for everyone.
Solution
- Copy System.Web.Silverlight.dll from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server to C:\Windows\assembly
- Copy Silverlight.js from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools to C:\inetpub\wwwroot\wss\VirtualDirectories\<portNumber>\ClientBin\
- Register Silverlight MIME type for file extension .XAP in IIS
- Reset IIS
This solved my collegue’s problems and hopefully helped you out.
Related Posts:
FREE Download SharePoint Test Data Population Tool (WSSDW.exe)The SharePoint test data population tool (WSSDW.exe) is a capacity planning and performance testing tool that populates data for testing SharePoint deployments. The SharePoint test
Getting A Named Resource From Your Web Part AssemblyDaniel has written a nice post titled, "Getting a Named Resource from your assembly: HTML templates for Web Parts".
An excerpt of it follows:
One of my
Debugging SharePoint 2007 Web Parts and WorkflowsQuick Links:
Tan Tielens Debug Tip for SharePoint Web Parts
Learn how to use Microsoft Visual Studio .NET to debug an existing Web Part assembly
How to: Debug
SharePoint 2007 and Code Access Security
What is Code Access Security (CAS)?
Code Access Security (CAS), in the Microsoft .NET framework, is Microsoft's solution to prevent untrusted code from performing privileged actions.
Defer Content After User Sees The Page (core.js)Defering content after users sees the page can be very beneficial. Why? Using this technique, the page is rendered much more quickly, while
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.
Comments are closed for this Article !