gpt4 book ai didi

c# - Ajax 工具包不适用于网站部署

转载 作者:行者123 更新时间:2023-11-30 16:12:22 25 4
gpt4 key购买 nike

我在我的本地机器上有一个工作网站。我决定购买一些主机并上传当前版本,并在我工作时更新它。一切都在我的本地机器上运行,只有未完成的页面。但是,当我将站点上传到 godaddy 时,ReflectionTypeLoadException。

这是堆栈跟踪:

[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.RuntimeModule.GetTypes() +4
System.Reflection.Assembly.GetTypes() +70
AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() +68

[TypeInitializationException: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.]
AjaxControlToolkit.ToolkitScriptManager..ctor() +62
ASP.basic_master.__BuildControlScriptManager1() in g:\PleskVhosts\ethentia.com\httpdocs\Basic.master:24
ASP.basic_master.__BuildControlform1() in g:\PleskVhosts\ethentia.com\httpdocs\Basic.master:22
ASP.basic_master.__BuildControlTree(basic_master __ctrl) in g:\PleskVhosts\ethentia.com\httpdocs\Basic.master:1
ASP.basic_master.FrameworkInitialize() in g:\PleskVhosts\ethentia.com\httpdocs\Basic.master.cs:912308
System.Web.UI.UserControl.InitializeAsUserControlInternal() +32
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +655
System.Web.UI.Page.get_Master() +54
System.Web.UI.Page.ApplyMasterPage() +14
System.Web.UI.Page.PerformPreInit() +45
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335

我已确保将 Ajax dll 包含在我的 Bin 文件夹中。我试过重新加载和重建我的网站。我使用的是最新版本的 Ajax 和 ASP。 Here是我的网站 url 和堆栈跟踪,如果有人想看的话。

感谢您的帮助。

--道德观念

最佳答案

在互联网上进行研究时,我发现 ajax 控制工具包需要完全信任才能运行。服务器上的默认信任是中等,您需要将其更改为完全。添加<trust level="Full" />在您的 web.config 中的 system.web 下。

http://support.winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx

关于c# - Ajax 工具包不适用于网站部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23092252/

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