ASP.NET Ajax error

I added ModalPopupExtender to an existing ASP.NET application. At runtime, I get the following error:

Compilation Error Description: An error occurred while compiling a resource required to service this request. Please review the specific error details below and modify your source code accordingly.

Compiler error message: BC32206: Indirect reference is made to the System.Web.Extensions version 3.5.0.0 assembly that contains "AjaxControlToolkit.ModalPopupExtender". This project references a previous version of System.Web.Extensions version 1.0.61025.0. To use "AjaxControlToolkit.ModalPopupExtender", you must replace the reference to System.Web.Extensions with version 3.5.0.0 or higher.

Source error:

Line 29:
Line 30:
Line 31:

How to fix it.

+1


source to share


2 answers


Are you sure you have the correct version of the AjaxControlToolkit? There is a version that is compiled against .NET 3.5 and one of them against .NET 2.0.

It looks like you are still in 2.0 lands (with 2.0 AJAX extensions). If so, get the correct Toolkit version . It looks like the latest version doesn't support .NET2.0.



If you are on 3.5 earth, take a look at your System.Web.Extensions references and make sure you are referencing the .NET3.5 version (the actual version is 3.5.x which is "inline") and not .NET2.0 (the actual version 1.0.x which is an add-on to the download).

+1


source


You are trying to compile a .NET 3.5 application with reference to a .NET 1.1 module. Make sure you have .NET 3.5 installed, and if you do, make sure you are trying to build it in .NET 3.5.



You can also see this post .

+2


source







All Articles