Failed to Load file or assembly "system. Web. Extensions"

Source: Internet
Author: User
Note: An error occurred while processing the configuration file required to provide services to the request. Check the following error details and modify the configuration file as appropriate.
Analyzer error message: failed to Load file or Program Set "system. Web. Extensions, version = 1.0 . 61025.0 , Culture = neutral, publickeytoken = 31bf3856ad364e35 "or one of its dependencies. The system cannot find the specified file.

The following error message is displayed when you call a website program created by ASP. NET:
Error 1 Failed to 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 specified file. D:/inetpub/wwwroot/xmlbbs/Web. config 19
Performance:
1 , "System. Web. Extensions, version = 1.0 . 61025.0 , Culture = neutral, publickeytoken = 31bf3856ad364e35 "or one of its dependencies. The system cannot find the specified file.
2 Background systems, even after adding a reference, no matter whether the reference is a system or a user, their attributes and methods cannot be identified;
Solution 1:

1 If your program runs on a server that you can control, you can install Asp.net Ajax. This is system. web. extensions and other DLL are deployed as GAC; (usually AJAX can be installed)
2 If your program runs on a VM (You do not have permission to install the Program), you need to set system. Web. Extensions. dll and System. Web. Extensions. Design. dll
(Usually in C:/program files/Microsoft ASP. NET/ASP. NET 2.0 Ajax extensions/v1. 0 . 61025 directory) copy the two DLL files to the bin directory of your web application. This is application-level deployment.
Check Code :
<Assemblies>
<Add Assembly = " System. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
</Assemblies>
<Controls>
<Add tagprefix = " Atlas " Namespace = " System. Web. UI " Assembly = " System. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
</Controls>

Solution 2:

1 . Open Web. config and find the following nodes:
<Add Assembly = " System. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
<Add Assembly = " System. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " > </Add>
<Add Assembly = " System. Core, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
<Add Assembly = " System. Data. LINQ, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
<Add Assembly = " System. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
<Add Assembly = " System. Core, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
<Add Assembly = " System. Data. LINQ, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
2 . Comment out or delete these results and re-compile them.
This is because the Ajax compiled by vs2005 is 1.0, while vs2008 can simultaneously compile ajax1.0 and other versions, so there will be conflicts.

Solution 3:
Publickeytoken = 31bf3856ad364e35"
Or one of its dependencies. The system cannot find the specified file.
Install Asp.net Ajax, and then set X:/program files/Microsoft ASP. NET/ASP. NET 2.0 Ajax extensions/v1. 0.61025
Add the system. Web. Extensions. Design. dll file under the directory to the bin directory of the project. copy the file to the bin directory of the website and run it again,
After installing Asp.net Ajax, there will be three DLL files
System. Web. Extensions. Design. dll
Ajaxextensionstoolbox. dll
System. Web. Extensions. dll
Generally, you should add these three files to the bin directory of the project. If you want to insure them, copy them all.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.