Windows error 0x80131418, -2146233320

Detailed Error Information

CORSEC_E_NO_EXEC_PERM[1]

Message"Failed to grant permission to execute."
Comment Failed to grant permission to execute

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 Code5144 (0x1418)

Questions

7votes
0answers

Intermittent PolicyException: Execution permission cannot be acquired

We are intermittently seeing the following exception shortly after an App Pool recycle in an ASP.NET application: System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) ---> System.IO.FileLoadException: Could not load file or [...] read more
asp.net
asp.net-mvc
code-access-security
2votes
1answer

Assembly fails to load in restricted AppDomain

I am trying to load an Assembly into a restricted AppDomain. If I do not specify any restrictions, the Assembly will load correctly: var permissionSet = new PermissionSet(System.Security.Permissions.PermissionState.Unrestricted); AppDomain targetAppDomain = AppDomain.CreateDomain("LockedDomain" + Guid.NewGuid().ToString("N"),null,domainSetup,permissionSet,null); var instance = (IRemoteFilterClass) targetAppDomain.CreateInstanceFromAndUnwrap(tempAssemblyPath, "CompiledCode.CompiledClass"); Howevere I want to lock down the created AppDomain as [...] read more
c#
.net
.net-assembly
appdomain
2votes
1answer

Could not load file or assembly, Failed to grant permission to execute

I get following error while running my winform project, though all the reference are added in the project.. Does anybody has solution for it Could not load file or assembly 'UltraControl, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) read more
winforms
1vote
0answers

Problem in running SSRS report using custom dll in SSRS 2016. Failed to grant permission to execute

When i am running the report, it is supposed to access a custom assembly (which is not signed), But i am getting the below error. Failed to load expression host assembly. Details: Could not load file or assembly "xxxxxxx, Version=6.0.0.1, Culture=neutral, PublicKeyToken=null" or one of its dependencies. Failed to grant [...] read more
reporting-services
reporting-services-2016
1vote
1answer

SSRS Barcodes broken in reports after upgrading to 2016

We recently upgraded our report server to 2016 and everything worked great except for the reports that contain barcodes. I tried going back through the same article I used the first time we started using barcodes but so far I have not had any luck. I am getting this error: [...] read more
reporting-services
reporting-services-2016
1vote
1answer

VSTO default setup is not working

I just create a VSTO second edition project for Word AddIn and build the Setup project. After installed, the error was detected: Could not load file or assembly 'WordAddIn1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) ************** Exception Text [...] read more
c#
visual-studio-2005
ms-word
vsto
1vote
3answers

Has anyone encountered: "Could not load file or assembly 'aspnet_compiler... Failed to grant permission to execute"?

I am encountering a strange build issue in .NET 3.5. The compiler is crashing when it attempts to build a Web Deployment Project. > C:\Program > Files\MSBuild\Microsoft\WebDeployment\v9.0\Microsoft.WebDeployment.targets(531,9): > error MSB6006: "aspnet_compiler.exe" exited with code -532459699. Which leads to: > Could not load file or assembly 'aspnet_compiler, Version=2.0.0.0, > Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [...] read more
.net
compiler-construction
nant
1vote
1answer

Intermittent Could not load file or assembly / PolicyExceptions

Intermittently we'll get errors like these from our .NET 3.5 web applications: Exception: System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'itextsharp, Version=4.1.2.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) (C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\web.config line 59) ---> System.IO.FileLoadException: Could not load file or assembly [...] read more
asp.net
iis-7
windows-server-2008
1vote
1answer

Execution permission cannot be acquired for Outlook 2003 addin

I am developing a simple Outlook 2003 add-in using VSTO 2008. Everything works fine on development environment. But when I try to install the addin it gives following load error. I think there is some security related issue. Please help me in resolving this issue. Could not load file or [...] read more
c#
outlook
vsto
1vote
1answer

Cassini exceptions on medium trust ASP.NET MVC application using Linq-to-SQL

I am receiving the following exception trying to browse a medium trust ASP.NET MVC application (using Linq-to-SQL) on Cassini 3.5.0.2: Could not load file or assembly 'Cassini, Version=3.5.0.2, Culture=neutral, PublicKeyToken=da0fefd60d522a7d' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) with an inner exception: Execution [...] read more
asp.net-mvc
visual-studio-2008
linq-to-sql
cassini
0votes
1answer

.Net app when started gives error 0x80131418 - Failed to grant permission to execute

I have a .Net 3.5 application compiled in VS2008 that when run after a Debug compile gives me the following error: Could not load file or assembly 'MyProgram, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418) The same program when [...] read more
.net
visual-studio-2008

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