프로그램 집합'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'에서 형식'System.Runt'를 불러올 수 없습니다.

4068 단어

"/" 응용 프로그램의 서버 오류입니다.


프로그램 집합'mscorlib,Version=4.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089'에서 형식'System.Runtime.CompilerServices.TuppressIldasmAttribute'를 불러올 수 없습니다.


설명: 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다.이 오류와 코드에서 발생하는 오류의 출처에 대한 자세한 정보를 확인하려면 창고 추적 정보를 확인하십시오.이상 세부 정보: System.TypeLoadException: 프로그램 집합'mscorlib, Version=4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'에서 형식'System.Runtime.CompilerServices.TuppressIldasmAttribute'를 불러올 수 없습니다.소스 오류: Web 。 。
스택 추적:
[TypeLoadException:  “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” “System.Runtime.CompilerServices.TuppressIldasmAttribute”。]
   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) +145
   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +130
   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) +91
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +466
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit) +64
   WebActivatorEx.AssemblyExtensions.GetActivationAttributes(Assembly assembly) +127
   WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +227
   WebActivatorEx.ActivationManager.RunPreStartMethods(Boolean designerMode) +48
   WebActivatorEx.ActivationManager.Run() +75

[InvalidOperationException:   WebActivatorEx.ActivationManager   Run  , :  “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” “System.Runtime.CompilerServices.TuppressIldasmAttribute”。。]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +615
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +141
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549

[HttpException (0x80004005):   WebActivatorEx.ActivationManager   Run  , :  “mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” “System.Runtime.CompilerServices.TuppressIldasmAttribute”。。]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10085804
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

 
 
내 해결 방법:
nuget 설치
WebActivatorEx
 

 
다음으로 전송:https://www.cnblogs.com/LuDragon/p/8548330.html

좋은 웹페이지 즐겨찾기