Solution to Required permissions cannot be acquired in IIS7

Source: Internet
Author: User
Problem: Server Error in '/' Application.
Required permissions cannot be acquired.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
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 evision, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet & denied, Boolean checkExecutionPermission) + 10240702 System. security. securityManager. resolvePolicy (Evidence eviset, PermissionSet reqdPset, PermissionSet optPset, PermissionSet delimiter, PermissionSet & denied, Int32 & signature, Boolean delimiter) + 97 [FileLoadException: cocould not load file or assembly 'bll, version = 3.0.0.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies. failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System. reflection. assembly. _ nLoad (AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark & stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) + 0 System. reflection. assembly. internalLoad (AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection) + 416 System. reflection. assembly. internalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark & stackMark, Boolean forIntrospection) + 166 System. reflection. assembly. load (String assemblyString) + 35 System. web. configuration. compilationSection. loadAssemblyHelper (String assemblyName, Boolean starDirective) + 190 [partition: cocould not load file or assembly 'bll, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies. failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System. web. configuration. compilationSection. loadAssemblyHelper (String assemblyName, Boolean starDirective) + 11241896 System. web. configuration. compilationSection. loadAllAssembliesFromAppDomainBinDirectory () + 388 System. web. configuration. compilationSection. loadAssembly (AssemblyInfo ai) + 232 System. web. configuration. assemblyInfo. get_AssemblyInternal () + 48 System. web. compilation. buildManager. getReferencedAssemblies (CompilationSection compConfig) + 210 System. web. compilation. buildProvidersCompiler .. ctor (VirtualPath configPath, Boolean supplocallocalization, String outputAssemblyName) + 76 System. web. compilation. applicationBuildProvider. getGlobalAsaxBuildResult (Boolean isPrecompiledApp) + 283 System. web. compilation. buildManager. compileGlobalAsax () + 50 System. web. compilation. buildManager. ensureTopLevelFilesCompiled () + 676 [HttpException (0x80004005): cocould not load file or assembly 'bll, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies. failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System. web. compilation. buildManager. reportTopLevelCompilationException () + 76 System. web. compilation. buildManager. ensureTopLevelFilesCompiled () + 1012 System. web. hosting. hostingEnvironment. initialize (ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) + 1025 [HttpException (0x80004005): cocould not load file or assembly 'bll, Version = 3.0.0.0, culture = neutral, PublicKeyToken = null' or one of its dependencies. failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System. web. httpRuntime. firstRequestInit (HttpContext context) + 11335894 System. web. httpRuntime. ensureFirstRequestInit (HttpContext context) + 88 System. web. httpRuntime. processRequestInternal (HttpWorkerRequest wr) + 11209384Solution:
In the corresponding application domain:
Select advanced settings and set the Load User Profile under the Process Model to true.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.