未能从程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e0
未能从程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.Runtime.CompilerServices.ExtensionAttribute”。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.TypeLoadException: 未能从程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.Runtime.CompilerServices.ExtensionAttribute”。
源错误:
执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[TypeLoadException: 未能从程序集“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”中加载类型“System.Runtime.CompilerServices.ExtensionAttribute”。]
System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount) +0
System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount) +137
System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +65
System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord) +54
System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget) +82
System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target) +70
System.Reflection.RuntimeAssembly.GetCustomAttributesData() +4
System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target) +32
System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation) +48
System.Resources.ResourceManager.CommonSatelliteAssemblyInit() +108
System.Resources.ResourceManager..ctor(String baseName, Assembly assembly) +80
DotNetOpenAuth.Strings.get_ResourceManager() +61
DotNetOpenAuth.Strings.get_EmptyStringNotAllowed() +8
DotNetOpenAuth.Requires.NotNullOrEmpty(String value, String parameterName) +40
DotNetOpenAuth.Logger.CreateWithBanner(String name) +19
DotNetOpenAuth.Logger..cctor() +11
[TypeInitializationException: “DotNetOpenAuth.Logger”的类型初始值设定项引发异常。]
DotNetOpenAuth.Logger.get_Library() +14
DotNetOpenAuth.Reporting.Initialize() +410
DotNetOpenAuth.Reporting.set_Enabled(Boolean value) +32
DotNetOpenAuth.Reporting..cctor() +271
[TypeInitializationException: “DotNetOpenAuth.Reporting”的类型初始值设定项引发异常。]
DotNetOpenAuth.Reporting.set_Enabled(Boolean value) +0
Microsoft.Web.WebPages.OAuth.PreApplicationStartCode.Start() +32
[InvalidOperationException: 针对类型 Microsoft.Web.WebPages.OAuth.PreApplicationStartCode 的应用程序预启动初始化方法 Start 引发了异常,显示下列错误消息: “DotNetOpenAuth.Reporting”的类型初始值设定项引发异常。。]
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
[HttpException (0x80004005): 针对类型 Microsoft.Web.WebPages.OAuth.PreApplicationStartCode 的应用程序预启动初始化方法 Start 引发了异常,显示下列错误消息: “DotNetOpenAuth.Reporting”的类型初始值设定项引发异常。。]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9036040
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.225
这个错误是什么原因啊,却少哪个DLL啊?