本文介绍了无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在.net 4.0中部署我的网站,我在我的网站上使用AjexControlToolkit它在本地服务器上工作正常但在网上工作不正常 我的wesitye是www.imca.co.in erro list Line 25:< / asp:Content > 第26行:< asp:内容 ID = Content2 ContentPlaceHolderID = ContentPlaceHolder1 Runat = 服务器 > 第27行:< asp:ToolkitScriptManager ID = ToolkitScriptManager1 runat = server > 第28行:< / asp:ToolkitScriptManager > 第29行:< div > [ReflectionTypeLoadException:Unable 加载一个或更多所请求类型的lass =code-keyword>。检索LoaderExceptions 属性 获取更多信息。] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module )+ 0 System.Reflection.RuntimeModule.GetTypes()+ 4 System.Reflection.Assembly.GetTypes()+61 AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() ToolkitScriptManagerConfig.cs:31 [TypeInitializationException:类型初始值设定项 for ' AjaxControlToolkit.ToolkitScriptManagerConfig'抛出异常。] AjaxControlToolkit.ToolkitScriptManager..ctor() ToolkitScriptManager.cs:114 ASP.openpages_optionalcourses_aspx .__ BuildControlToolkitScriptManager1()在 d:\hosting\11929542\html\imca中\ OpenPages \ OptionalCourses.aspx:27 ASP.openpages_optionalcourses_aspx .__ BuildControlContent2(Control __ctrl) in d:\hosting\11929542\html\\ \\ imca\OpenPages \ OptionalCourses.aspx:26 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)+10 System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder,ITemplate template )+88 ASP.masterpage_master .__ BuildControlContentPlaceHolder1() in d:\hosting\11929542\html\imca\MasterPage.master:302 ASP.masterpage_master .__ BuildControlform1() in d:\hosting\11929542\html\imca\MasterPage.master:96 ASP.masterpage_master .__ BuildControlTree(masterpage_master __ctrl)在 d:\hosting\11929542\html\imca\MasterPage.master:1 如P.masterpage_master.FrameworkInitialize() in App_Web_udlk0kr5。 0 .cs:0 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 解决方案 检查一下(并在网上找到更多) Visual Studio 2005错误:检索LoaderExce ptions属性以获取更多信息 [ ^ ] I am deploy my website in .net 4.0, iam use AjexControlToolkit in my website it work fine at local server but it not work fine onlineMy wesitye is www.imca.co.inerro listLine 25: </asp:Content>Line 26: <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">Line 27: <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">Line 28: </asp:ToolkitScriptManager>Line 29: <div>[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() +61 AjaxControlToolkit.ToolkitScriptManagerConfig..cctor() in ToolkitScriptManagerConfig.cs:31[TypeInitializationException: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.] AjaxControlToolkit.ToolkitScriptManager..ctor() in ToolkitScriptManager.cs:114 ASP.openpages_optionalcourses_aspx.__BuildControlToolkitScriptManager1() in d:\hosting\11929542\html\imca\OpenPages\OptionalCourses.aspx:27 ASP.openpages_optionalcourses_aspx.__BuildControlContent2(Control __ctrl) in d:\hosting\11929542\html\imca\OpenPages\OptionalCourses.aspx:26 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +10 System.Web.UI.MasterPage.InstantiateInContentPlaceHolder(Control contentPlaceHolder, ITemplate template) +88 ASP.masterpage_master.__BuildControlContentPlaceHolder1() in d:\hosting\11929542\html\imca\MasterPage.master:302 ASP.masterpage_master.__BuildControlform1() in d:\hosting\11929542\html\imca\MasterPage.master:96 ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in d:\hosting\11929542\html\imca\MasterPage.master:1 ASP.masterpage_master.FrameworkInitialize() in App_Web_udlk0kr5.0.cs:0 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 解决方案 Check this one(and find more in web)Visual Studio 2005 Error : Retrieve the LoaderExceptions property for more information[^] 这篇关于无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 20:09