Quick Tip: Could not load file or assembly System.Web.Silverlight.dll

Tagged with: , , ,
Tuesday, June 10, 2008, 20:41
This news item was posted in Demo, UI, Web Parts category and has 0 Comments so far.

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

  1. Copy System.Web.Silverlight.dll from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server to C:\Windows\assembly
  2. Copy Silverlight.js from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools to C:\inetpub\wwwroot\wss\VirtualDirectories\<portNumber>\ClientBin\
  3. Register Silverlight MIME type for file extension .XAP in IIS
  4. 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 Assembly
  • Daniel 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 Workflows
  • Quick 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
    Both comments and pings are currently closed.

    Comments are closed for this Article !