出现错误:无法加载一种或多种请求的类型。检索LoaderExceptions属性以获取更多信息

木布

我在服务器上上传网站时遇到此错误。即使我在Visual Studio中的本地服务器上运行它也能正常工作。请帮助我解决此问题。我正在将Visual Studio 2012与sql server 2008一起使用。是项目文件夹之外的packages文件夹,可能是我也需要上传dat ..请帮助

我得到的错误

Server Error in '/' Application.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Source Error: 


    Line 96:          
    Line 97: 
    Line 98:         <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
    Line 99:      
    Line 100:<header>

    Source File: g:\pleskvhosts\hitchtechnologies.com\manshasweets.hitchtechnologies.com\MasterPage.master    Line: 98 

    Stack Trace: 


    [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:32

    [TypeInitializationException: The type initializer for 'AjaxControlToolkit.ToolkitScriptManagerConfig' threw an exception.]
       AjaxControlToolkit.ToolkitScriptManager..ctor() in ToolkitScriptManager.cs:114
       ASP.masterpage_master.__BuildControlToolkitScriptManager1() in g:\pleskvhosts\hitchtechnologies.com\manshasweets.hitchtechnologies.com\MasterPage.master:98
       ASP.masterpage_master.__BuildControlform1() in g:\pleskvhosts\hitchtechnologies.com\manshasweets.hitchtechnologies.com\MasterPage.master:93
       ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) in g:\pleskvhosts\hitchtechnologies.com\manshasweets.hitchtechnologies.com\MasterPage.master:1
       ASP.masterpage_master.FrameworkInitialize() in g:\pleskvhosts\hitchtechnologies.com\manshasweets.hitchtechnologies.com\MasterPage.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

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18056

如果我做错了什么,这是我的web.config.please帮助我:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <appSettings>

    <add key="connectionString" value="Data Source=Node-6-PC;Initial Catalog=dbMansha;user id=sa; password=hitch@123;"/>

    <add key="SiteFileFolder" value=""/>
  </appSettings>
  <system.web>
    <sessionState cookieless="false" regenerateExpiredSessionId="true" timeout="129600" />
    <globalization culture="en-GB"/>
    <compilation debug="true" targetFramework="4.5">

    </compilation>
    <httpRuntime maxRequestLength="12000" useFullyQualifiedRedirectUrl="true" executionTimeout="45"/>
    <authentication mode="Forms">

      <forms timeout="129600"/>
    </authentication>
    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
      </providers>
    </membership>
    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
      </providers>
    </roleManager>
  </system.web>

</configuration>
木布

需要将ajax 4.5更改为4.0。和工作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

ASP.Net Core 1.0无法加载一种或多种请求的类型。检索LoaderExceptions属性以获取更多信息

来自分类Dev

WebAPI:无法加载一种或多种请求的类型

来自分类Dev

无法编译:从“ NULL”获取“ LoaderExceptions属性”以获取更多信息

来自分类Dev

Sitecore包设计器“无法加载一种或多种请求的类型”

来自分类Dev

单元测试适配器引发异常:无法加载一种或多种请求的类型

来自分类Dev

创建新的Xamarin应用程序时,“无法加载一种或多种请求的类型”

来自分类Dev

Sitecore包设计器“无法加载一种或多种请求的类型”

来自分类Dev

创建新的Xamarin应用程序时,“无法加载一种或多种请求的类型”

来自分类Dev

在 .Net Core API 中使用 ASMX 服务:System.Reflection.ReflectionTypeLoadException:无法加载一种或多种请求的类型

来自分类Dev

Google Charts API“未捕获的错误:无法加载一种或多种字体。”

来自分类Dev

一种在Flurry中记录比错误ID更多信息的信息?

来自分类Dev

请求无法解析为一种类型

来自分类Dev

错误HttpClient无法解析为一种类型

来自分类Dev

错误:OnCheckedChangeListener无法解析为一种类型

来自分类Dev

错误HttpClient无法解析为一种类型

来自分类Dev

从只有一种格式类型的数据库中的查询中获取“无法解决排序规则冲突”错误

来自分类Dev

无法将一种类型转换为另一种类型错误

来自分类Dev

Excel工作表错误:找不到编译动态表达式所需的一种或多种类型

来自分类Dev

两种属性,一种类型

来自分类Dev

一种类型的属性映射到另一种类型的实例

来自分类Dev

一种方法允许引发多种类型的异常或仅引发一种异常会更好吗?

来自分类Dev

自动映射器,将一种对象成员类型映射到多种具体类型

来自分类Dev

删除除一种(或多种)文件类型外的所有文件类型

来自分类Dev

PHP映像上传-从一种类型转换为多种类型

来自分类Dev

一种服务或多种服务

来自分类Dev

从集合中获取所有一种值类型

来自分类Dev

在 C# 中获取一种类型的对象

来自分类Dev

我应该使用一种或多种操作类型来表示此异步操作吗?

来自分类Dev

是否可以通过Autofac组件扫描为多种键注册一种类型?

Related 相关文章

  1. 1

    ASP.Net Core 1.0无法加载一种或多种请求的类型。检索LoaderExceptions属性以获取更多信息

  2. 2

    WebAPI:无法加载一种或多种请求的类型

  3. 3

    无法编译:从“ NULL”获取“ LoaderExceptions属性”以获取更多信息

  4. 4

    Sitecore包设计器“无法加载一种或多种请求的类型”

  5. 5

    单元测试适配器引发异常:无法加载一种或多种请求的类型

  6. 6

    创建新的Xamarin应用程序时,“无法加载一种或多种请求的类型”

  7. 7

    Sitecore包设计器“无法加载一种或多种请求的类型”

  8. 8

    创建新的Xamarin应用程序时,“无法加载一种或多种请求的类型”

  9. 9

    在 .Net Core API 中使用 ASMX 服务:System.Reflection.ReflectionTypeLoadException:无法加载一种或多种请求的类型

  10. 10

    Google Charts API“未捕获的错误:无法加载一种或多种字体。”

  11. 11

    一种在Flurry中记录比错误ID更多信息的信息?

  12. 12

    请求无法解析为一种类型

  13. 13

    错误HttpClient无法解析为一种类型

  14. 14

    错误:OnCheckedChangeListener无法解析为一种类型

  15. 15

    错误HttpClient无法解析为一种类型

  16. 16

    从只有一种格式类型的数据库中的查询中获取“无法解决排序规则冲突”错误

  17. 17

    无法将一种类型转换为另一种类型错误

  18. 18

    Excel工作表错误:找不到编译动态表达式所需的一种或多种类型

  19. 19

    两种属性,一种类型

  20. 20

    一种类型的属性映射到另一种类型的实例

  21. 21

    一种方法允许引发多种类型的异常或仅引发一种异常会更好吗?

  22. 22

    自动映射器,将一种对象成员类型映射到多种具体类型

  23. 23

    删除除一种(或多种)文件类型外的所有文件类型

  24. 24

    PHP映像上传-从一种类型转换为多种类型

  25. 25

    一种服务或多种服务

  26. 26

    从集合中获取所有一种值类型

  27. 27

    在 C# 中获取一种类型的对象

  28. 28

    我应该使用一种或多种操作类型来表示此异步操作吗?

  29. 29

    是否可以通过Autofac组件扫描为多种键注册一种类型?

热门标签

归档