Windows error 0x80131416, -2146233322

Detailed Error Information

CORSEC_E_POLICY_EXCEPTION[1]

Message"PolicyException thrown."
Comment PolicyException thrown

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5142 (0x1416)

Questions

1vote
0answers

Execution permission cannot be acquired - FileLoadException: Could not load file or assembly 'Microsoft.VisualStudio.Web.PageInspector.Runtime

I'm trying to setup an old MVC 3 Application on my development machine and trying to make it work. I'm getting he following error. I'm not sure how to resolve this. I appreciate any help over this. Execution permission cannot be acquired. Description: An unhandled exception occurred during the execution [...] read more
asp.net-mvc
asp.net-mvc-3
asp.net-mvc-4
asp.net-mvc-5
0votes
1answer

Unexpected exception chain after updating EF 6.x

I updated from EF6.2 to EF6.4 and I encountered this exception chain: [VerificationException: Operation could destabilize the runtime.] System.Data.Entity.Core.Metadata.Edm.FacetDescription.Validate(String declaringTypeName) +70 System.Data.Entity.Core.Metadata.Edm.FacetDescription..ctor(String facetName, EdmType facetType, Nullable`1 minValue, Nullable`1 maxValue, Object defaultValue, Boolean isConstant, String declaringTypeName) +103 System.Data.Entity.Core.SchemaObjectModel.FacetDescriptionElement.CreateAndValidateFacetDescription(String declaringTypeName) +115 System.Data.Entity.Core.SchemaObjectModel.TypeElement.ResolveTopLevelNames() +119 System.Data.Entity.Core.SchemaObjectModel.Schema.ResolveTopLevelNames() +206 System.Data.Entity.Core.SchemaObjectModel.Schema.Resolve() +16 System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption [...] read more
entity-framework
entity-framework-6
0votes
1answer

Execution permission cannot be acquired

I was wondering if anybody were able to run an MVC 5 application on a hosting company that restrict code access security to medium. I developped my app locally with the default settings (Full trust) but when deploying on the hosting company (whois.com) I am getting : [FileLoadException: Could not [...] read more
asp.net-mvc
security
permissions
asp.net-mvc-5
0votes
1answer

.NET Reflection policy exception

I have a strange problem: I deployed a .NET 2.0 application that uses reflection and I got a Policy Exception once I call Assembly.LoadFile. The error is the following: Could not load file or assembly 'xxx, Version=11.5.23.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. PolicyException thrown. (Exception from HRESULT: 0x80131416) [...] read more
.net
reflection
policy

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0