C# 无法加载文件或程序集';Ajax';或者它的一个依赖项。系统找不到指定的文件

C# 无法加载文件或程序集';Ajax';或者它的一个依赖项。系统找不到指定的文件,c#,ajax,deployment,asp.net-3.5,asp.net-4.0,C#,Ajax,Deployment,Asp.net 3.5,Asp.net 4.0,附加的错误消息如下: 我一直面临这个错误,因为我的网站中也包含了ajax库。另外,web.config还有关于ajaxtoolkit的重要标记 请记住,我最近已将此网站从ASP.NET 3.5切换到4.0 请帮帮忙 这里还有堆栈跟踪: Assembly Load Trace: The following information can be helpful to determine why the assembly 'Ajax' could not be loaded. WRN: Asse

附加的错误消息如下:

我一直面临这个错误,因为我的网站中也包含了ajax库。另外,
web.config
还有关于ajaxtoolkit的重要标记

请记住,我最近已将此网站从ASP.NET 3.5切换到4.0

请帮帮忙

这里还有堆栈跟踪:

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Ajax' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

我在尝试将旧应用升级到ASP.NET 4.0时遇到了这个问题。我知道-仍然很老,但这是客户想要的。我不停地问为什么会这样。然后我找到了它。该应用程序正在IIS中使用ASP.NET 4.0经典应用程序池。当我切换到ASP.NET4.0时,错误消失了。希望这有助于其他人解决此问题。

下面是其他错误消息:如它所说,找不到您放置的文件及其链接方式?ajax dll已放置在Bin文件夹中。请说明正在使用的ajax版本。ajax控件工具包版本为
4.1.50731