Wspbuilder cannot resolve assembly

When building a WSP solution with wspbuilder to deploy the Telerik RadEditor I got the error message below.

Unable to resolve assembly ‘System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’, please use DLLReferencePath to point to the directory where this DLL is located.

The package is built correctly but the message is somewhat messy. I had a similar error message after deploying the control for the first time because the required assembly binding was missing (running with .NET 3.5 and hence version 3.5 of System.Web.Extensions) in the web.config.

Thinking about the message it made a lot of sense. One of the Telerik assemblies was built with the System.Web.Extensions 1.0 assembly. Because there is .NET 3.5 installed on my box there is only the 3.5 version in the GAC.

To shut-up wspbuilder I extracted the assembly from the AJAX tookit 1.0 and put it into a separate folder, placed a local wspbuilder config file in the setup project, added the System.Web.Extensions (v 1.0) to references in the setup project and set copy local to false. Here is the config file:

<?xml version="1.0" encoding="utf-8" ?>
    <add key="DLLReferencePath" value="../CompiledDLLs" />

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.