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

Source: Internet
Author: User

During our deployment and implementation, many developed projects call the Ajax plug-in, which leads to the failure to load files orProgramSet error. This is because Ajax is not installed on the server.

This is especially troublesome during project deployment and the system cannot run.

The solution is as follows:

Specific problem:
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. Even after a reference is added to the background system, no matter whether the reference is a system or a user, their attributes and methods cannot be identified;

Solution 1:

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, these three files should be added to the bin directory of the project. If you want to insure them, copy them all. Download the link.

Download ajaxdll.rar

 

Solution 2:

1. If your program runs on a server that you can control, 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 two DLL files to the bin directory of your web application. This is application-level deployment.
CheckCode:

<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 3:

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.

During our deployment and implementation, many developed projects call the Ajax plug-in, which leads to the failure to load files or assembly errors. This is because Ajax is not installed on the server.

This is especially troublesome during project deployment and the system cannot run.

The solution is as follows:

Specific problem:
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. Even after a reference is added to the background system, no matter whether the reference is a system or a user, their attributes and methods cannot be identified;

Solution 1:

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, these three files should be added to the bin directory of the project. If you want to insure them, copy them all. Download the link.

Download ajaxdll.rar

 

Solution 2:

1. If your program runs on a server that you can control, 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 two DLL files to the bin directory of your web application. This is application-level deployment.
Check the code in Web. config:

<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 3:

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.

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.