无法从程序集'mscorlib,版本= 4.0.0.0加载类型'System.Reflection.AssemblyMetadataAttribute'

时间:2014-06-23 12:42:00

标签: c# asp.net-4.0

我的项目第一次加载时发现了这个错误

Server Error in '/EasyWeb' Application.
Could not load type 'System.Reflection.AssemblyMetadataAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
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.TypeLoadException: Could not load type 'System.Reflection.AssemblyMetadataAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:


Line 13: <body>
Line 14: <form id="form1" runat="server">
Line 15:     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
Line 16:      <Scripts>
Line 17:                <asp:ScriptReference Path="~/js/jquery-1.9.1.js" />


Source File: f:\EasyWeb\Admin\MasterPage.master    Line: 15

Stack Trace:


[TypeLoadException: Could not load type 'System.Reflection.AssemblyMetadataAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
   System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
   System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180
   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388
   System.Web.UI.ScriptManager..ctor() +26
   ASP.admin_masterpage_master.__BuildControlScriptManager1() in f:\EasyWeb\Admin\MasterPage.master:15
   ASP.admin_masterpage_master.__BuildControlform1() in f:\EasyWeb\Admin\MasterPage.master:14
   ASP.admin_masterpage_master.__BuildControlTree(admin_masterpage_master __ctrl) in f:\EasyWeb\Admin\MasterPage.master:1
   ASP.admin_masterpage_master.FrameworkInitialize() in f:\EasyWeb\Admin\MasterPage.master.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8832342
   System.Web.UI.Page.get_Master() +54
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328


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

这是什么问题....框架4.0的问题是mscorlib .................

这个错误让我很头疼....

有人可以帮我出去.....

0 个答案:

没有答案