1

I have an application that has been converted from VS2005 2.0 framework to VS2008 3.5 framework. I am attempting to add the ability to use the AjaxControlToolkit DLL [AjaxControlToolkit-Framework3.5SP1-DllOnly.zip] download only within my project. I have followed the configuration setups to get the project to build, and have not been successful in getting a control to load.

How do I install and use the ASP.NET AJAX Control Toolkit in my .NET 3.5 web applications?

and

Configuring ASP.NET AJAX

I am currently running into an error after adding all the web.config settings to my web application.

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

<compilation defaultLanguage="vb" debug="true">  
  <assemblies>  
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
  </assemblies>  
  <expressionBuilders>  
 

I imagine others have had this problem, but can't find any resources that will help me fix this. Thanks in advance for the help.

4

2 回答 2

1

那是旧版本。更改 web.config 中的行以使用 3.5 版本:

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

(是的,这是一个常见的转换错误。)

于 2009-05-08T15:18:19.213 回答
1

我从 web.config 继承中遇到了很多这个问题。您还可以添加绑定重定向。下面将对旧版本的任何调用重定向到新版本,您也可以将其设置为反过来工作。

  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
于 2009-05-08T15:25:23.520 回答