gpt4 book ai didi

c# - 如何从网站上删除 ajax 工具包

转载 作者:太空宇宙 更新时间:2023-11-03 10:58:37 25 4
gpt4 key购买 nike

如何从我的网站上删除 ajax 工具包?我在 .net 4.0 中开发了我的网站,当我在 2.0 中编译并运行它时,它在页面加载时出现此错误。

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 

我认为是 Ajax 导致了我的错误,因为 .net 2.0 中不存在 ajax

我没有在我的网站中使用 ajax,所以我可以删除它或从当前网站中删除它。

编辑这是程序集加载跟踪:

=== Pre-bind state information ===
LOG: User = PJLIMAIN\aslaure
LOG: DisplayName = AjaxControlToolkit
(Partial)
LOG: Appbase = file:///C:/Users/aslaure/Desktop/IACS References/PJLhuillier.IACS/PJLhuillier.IACS/
LOG: Initial PrivatePath = C:\Users\aslaure\Desktop\IACS References\PJLhuillier.IACS\PJLhuillier.IACS\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\aslaure\Desktop\IACS References\PJLhuillier.IACS\PJLhuillier.IACS\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/aslaure/AppData/Local/Temp/Temporary ASP.NET Files/root/70cff49e/7a1e4609/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Users/aslaure/AppData/Local/Temp/Temporary ASP.NET Files/root/70cff49e/7a1e4609/AjaxControlToolkit/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Users/aslaure/Desktop/IACS References/PJLhuillier.IACS/PJLhuillier.IACS/bin/AjaxControlToolkit.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.

最佳答案

你应该从 aspx 文件的顶部删除这一行:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

关于c# - 如何从网站上删除 ajax 工具包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18525675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com