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.