Windows error 0x80131417, -2146233321

Detailed Error Information

CORSEC_E_MIN_GRANT_FAIL[1]

Message"Failed to grant minimum permission requests."
Comment Failed to grant minimum permission requests

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 Code5143 (0x1417)

Questions

33votes
9answers

IIS7 Failed to grant minimum permission requests

I get this error when I'm using FileHelpers.dll, but my IIS is set to Full trust level so it should not be that way That's the full stack trace: [PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +10238142 System.Security.SecurityManager.ResolvePolicy(Evidence evidence, [...] read more
iis
permissions
4votes
2answers

Failed to grant minimum permission requests when calling C# library from C++/CLI DLL from local console app

This question follows on from Assembly does not allow partially trusted callers when using a custom resolver Thanks to the solution in that question I am now able to call into a C# Library on a network share from a local console application (with no changes to CasPol) I now [...] read more
c#
.net
c++-cli
4votes
2answers

PolicyException: Required permissions cannot be acquired — what does this error mean

Got this error when trying to load an aspx page: Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [PolicyException: Required permissions cannot be [...] read more
asp.net
sqlite
iis
permissions
3votes
1answer

Visual Studio 2013 refuses to build solution, says "Could not load file or assembly ... Failed to grant minimum permission requests", 0x80131417

I have a VS solution that used to build fine. It's been building fine for like forever in VS 2010, and built fine until I made some modifications to a project that pulls in a third-party library (in this case, ActiveReports3) at which point I can no longer build the [...] read more
asp.net
visual-studio-2013
windows-8.1
cas
activereports
3votes
2answers

PolicyException when using DotNetOpenAuth library

When I drop the DotNetOpenAuth dll into my /bin directory, my app won't run with the following stack trace. Has anyone had any experience with this library? I've gone through their docs and suspect I'm not deploying it correctly. My web app should be running with full trust on my [...] read more
asp.net
dotnetopenauth
1vote
1answer

Office Communicator and cannot sync Address book error

We are trying to get OCS 2007 R2 up and running. The clients login fine, but when I let it sit for a while, we still get the address book sync error message of: > "Cannot synchronize with the corporate address book. This may be because the > proxy server [...] read more
ms-office-communicator
1vote
0answers

SecurityException(Partial Trust) running Workflow from Windows Forms Application

I'm trying to make use of a sequential workflow console application being called from a windows forms app. When the project runs and I click on the button that would create and start the workflow I get I get SecurityException was unhandled That assembly does not allow partially trusted callers. [...] read more
.net
workflow-foundation
1vote
2answers

Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

I have a winforms app that is using reflection to load up assembly X. It runs great from my local machine, but craps out when run from a network share. I created a code group granting full trust(for testing only) to assemblies from the share (by specifying the url property). [...] read more
c#
.net
reflection
cas
1vote
2answers

Reporting Services/Manager Access

I am Running SQL Server R2 on my local Windows 7 Professional 64-bit machine. The only way I can open Report Manager is if I turn UAC off. If I set UAC to the recommend level and run IE as admin I get the following error: The report server cannot [...] read more
reporting-services
1vote
1answer

Security exception when passing .net 3.5 to 4.0

We have some issues while migrating our Asp.Net Web Application .Net 3.5 to .Net 4.0. It seemed that we had a Caspol Security Exception, so we added this to our web.config : <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> and nothing changed. It seem that we cannot execute the assembly "Microsoft.Web.Management.Iis" in AspNet [...] read more
security
iis
.net-4.0
permissions
caspol
1vote
1answer

How to run System.Web.DataVisualization in Medium Trust at on Rackspace Cloud Sites

I am having problems getting Microsoft Charting: System.Web.DataVisualization.dll To work in the Medium Trust on Windows Server 2008 on IIS 7 Using .Net 3.5 In an environment at Rackspace on their Cloud Sites. I get this error message from the Rackspace hosting environment: Security Exception Description: The application attempted to [...] read more
asp.net
iis-7
mschart
medium-trust
1vote
1answer

ASP.NET runtime error: Could not load file or assembly 'DotNetOpenAuth,

I'm working with the DotNetOpenAuth controls and on my ASPX pages in source view I have a blue squiggly line under the @Page directive with the following error. > ASP.NET runtime error: Could not load file or assembly 'DotNetOpenAuth, > Version=3.2.0.9177, Cultur=neutral, PublicToken=2780ccd10d57b246' or one of > its dependencies. Failed [...] read more
c#
asp.net-3.5
1vote
1answer

What's the best way for a VPC to access files on the host machine

I am running Vista64 as the host for Win XP in Virtual PC 2007 SP1. I want to store my files on the host machine and just access them from the virtual pc. I access the files on the Host through a network share over the loopback adapter. Everyone has [...] read more
visual-studio-2008
permissions
caspol
vpc
0votes
1answer

W2k8, Sybase Driver, Permissions

Trying to get a .net (32bit) app running on a Windows 2008 server. My experience in the Windows world is quite limited... Is this related to the Full/Medium trust settings? Windows error logging is pure nonsense :((( Have been Googling for quite some time. Appreciate your feedback! Seeing the following [...] read more
windows
iis
.net
0votes
1answer

error when using filehelpers on IIS; sometimes : [PolicyException: Required permissions cannot be acquired.]

FileHelpers.dll are referenced within 2 class libraryies (Dto and Services) in my solution My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008: (to get rid of it I delete the FileHelpers.dll from bin, run, [...] read more
iis
security
0votes
1answer

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& [...] read more
c#
.net
oracle
visual-studio
iis-10
0votes
1answer

SharePoint 2010 Sand box solution does not work with third party DLL

I am using a third party library in my SharePoint 2010 Visual Web Part sand box solution. I have already added the assembly to the Package using the Advance tab as instructed here https://msdn.microsoft.com/en-us/library/vstudio/ee231595(v=vs.120).aspx I then use Visual Studio 2013 to deploy it to my local farm. If I set [...] read more
c#
.net
sharepoint
sharepoint-2010
0votes
2answers

Required permissions cannot be acquired error using Assembly.LoadFrom(String) in winforms

I have a winforms application that loads some dll (that I have also written and installed together with the app) at runtime with Assembly.LoadFrom(String). The dll is inside a sub directory of the path where the exe is placed. Occasionally, the app cannot start in a particular computer and comes [...] read more
winforms
c++-cli
0votes
1answer

.Net Object tag that loads additional DLLs

Okay, so I have a project to create a .Net control that interacts with a clients barcode scanner via a COM object from an web page (only IE is required). To do this, we have utilized a .Net Windows Form Control Library DLL which is loaded using an Object tag: [...] read more
c#
.net
internet-explorer
com
object-tag
0votes
0answers

Bloomberg .NET API CAS Permission Set

I am working on an application which uses the Bloomberg API and to be used via its portal. This is a .NET4.0 app. It fails the security validation, throwing an exception like this: System.Windows.Markup.XamlParseException occurred Message='Set connectionId threw an exception.' Line number '6' and line position '14'. Source=PresentationFramework LineNumber=6 LinePosition=14 [...] read more
c#
security
bloomberg
0votes
1answer

asp.net within a hosted environment and Castle.Windsor -> Required permissions cannot be acquired

I am developing an asp.net 3.5 web application which is running perfectly on my local IIS server but gets me into a lot of trouble when publishing it to a hosted (1and1) environment. When the web.config is loaded an "System.Security.Policy.PolicyException: Required permissions cannot be acquired." exception is thrown. The stack [...] read more
asp.net
iis
castle-windsor
hosted
0votes
2answers

MVC .NET + Server deployment issue

I have uploaded my database as well as files to server using FTP995. I am using the hosting server Go Daddy and they have trust level as Medium for all applications they support, When I try to run my site, it is not even showing me a login page... throwing [...] read more
asp.net-mvc
deployment
0votes
1answer

Has anyone gotten SQL Compant 4 working on a Rackspace Cloud Site?

I've been trying to deploy a lightweight site on a Rackspace Cloud Site (not a Cloud Server) that uses SQL CE 4 to store simple contact-form submissions. I keep getting the Required permissions cannot be acquired error whenever I try to access the database. I'm not sure what I can [...] read more
sql-server-ce
rackspace-cloud
0votes
1answer

Mixed Mode C++ DLL function call failure when app launched from network share. Called from unmanaged c application

Mixed-mode DLL called from native C application fails to load: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module. Additional information: Could not load file or assembly 'XXSharePoint, Version=0.0.0.0, Culture=neutral, PublicKeyToken=e0fbc95fd73fff47' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) My environment is: [...] read more
.net
mixed-mode
full-trust
0votes
3answers

error when using filehelpers on IIS; sometimes :S : [PolicyException: Required permissions cannot be acquired.]

FileHelpers.dll (2.0) are referenced within 2 class libraryies (Dto and Services) in my solution My webapp (asp.net mvc) is on IIS7 (Full Trust) Windows 7 PRO 64 and I sometimes get this exception when starting my app from VS2008: (to get rid of it I delete the FileHelpers.dll from bin, [...] read more
asp.net
asp.net-mvc
security
iis
filehelpers
-1votes
1answer

Server Error in '/' Application. While accessing web site which is hosted on a shared network path (filer)

I am getting below error while accessing a web sites ,which is hosted on network filer. see i am using .net 2 application pool for application resources. under the same .net application pool i deployed two web sites . Let say web 1 and web 2 as an example. here [...] read more
asp.net
.net
iis
permissions
required

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