Failed to Load file or assembly system. Web. Extensions solution (vs08 (3.5 by default) released as version 2.0)

Source: Internet
Author: User

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. 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 (best solution ):

1. If yourProgramRun on the server you can control, then install Asp.net Ajax. This is system. Web. Extensions and other DLL for GAC deployment. (generally, 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 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.