Can load a file or assembly "XXX" or one of its dependencies, the system cannot find the specified file
http://blog.csdn.net/pplcheer/article/details/7796211
There are always problems in doing projects, and this is the problem today. I used the EXT control in my project and when I added a refresh button, I reported a "failure to load the file or assembly" Coolite.Ext.Web "or one of its dependencies", and then I re-found my Coolite installation file and loaded the corresponding DLL file again. , the problem is solved.
Here are my questions, check some of the information for your reference.
One
Failed to load file or assembly "Coolite.Ext.Web" or one of its dependencies
<!--access Authorization--
<add name= "Ajaxrequestmodule" type= "Coolite.Ext.Web.AjaxRequestModule, Coolite.Ext.Web"/>
Solution: Import Coolite.Ext.Web.dll in Bin directory entry, which is an AJAX control
Two
Failed to load file or assembly system.web.extensions workaround System.Web.Extensions, version=1.0.61025.0, Culture=neutral, publickeytoken= 31bf3856ad364e35 "or one of its dependencies. The system cannot find the file specified. The obvious error is that the assembly is missing. WORKAROUND: 1, if your program runs on the server you can control, then install Asp.netajax, which is System.Web.Extensions and other DLLs as the GAC deployment, 2, if your program runs on the virtual host (not authorized to install the program), Then need to put 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) 2 DLLs are copied to the bin directory of your Web program, which is an application-level deployment. Also note that you want to check the code in Web. config
The code is as follows:
<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>
Three
"Failed to load file or assembly" XXX "or one of its dependencies. The system cannot find the file specified. "
Search the internet for a bit, the method is as follows:
Obviously, the DLL file is missing, possibly cause
1. DLL file name is inconsistent with the DLL file name at load time.
2.DLL file does not exist at all, that is, the loss occurs,
3. Loading DLL path error, dll file exists, but loading path is incorrect
I checked the situation of my own project:
File name is consistent, in the Web project without reference to that assembly, I do not understand that other assemblies can be automatically loaded into the Web project when the program is enabled to the Bin folder, that is, the reference is not, I manually added to, in the run, no error;
My illegal reference to the assembly is the use of reflection reference, have an impact? I don't know, I'll add it later.
--------------------------------------
Description : An error occurred while processing the configuration file required to service the request. Please check the specific error details below and modify the configuration file as appropriate.
Parser Error message : 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 file specified.
An error message similar to the following appears in the Web-site program that is being transferred to ASP:
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 file specified. 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 file specified.
2, backstage system even if the reference is added, whether the reference is a system or a user, their properties and methods are not recognized;
Solution One:
1, if your program is running on a server you can control, then install ASP. NET AJAX, this is System.Web.Extensions and other DLLs as the GAC deployment, (general installation of Ajax can be resolved)
2, If your program is running on a virtual host (not authorized to install the program), then you need to put 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) 2 DLLs are copied to the bin directory of your Web program, which is an application-level deployment.
Also note that you want to 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 Two:
1. Open Web. config to find the following related 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, then recompile.
This is because VS2005 compiled Ajax is 1.0, and VS2008 can compile AJAX1.0 and other versions at the same time. So there will be conflicts.
Solution Three:
Publickeytoken=31bf3856ad364e35 "
Or one of its dependencies. The system cannot find the file specified
Install the ASP. X:\Program Files\Microsoft Asp.net\asp.net 2.0 Ajax extensions\v1.0.61025
The System.Web.Extensions.Design.dll file in the directory is added to the bin directory of the project, and the file is copied to the site Bin directory and then run again.
There will be three DLL files after installing ASP.
System.Web.Extensions.Design.dll
AjaxExtensionsToolbox.dll
System.Web.Extensions.dll
In general, these three files should be added to the project Bin directory, to be insured, all copied into it
Can load a file or assembly "XXX" or one of its dependencies, the system cannot find the specified file