Developer forum

Forum » Development » Required permissions cannot be acquired..... how to fix it?

Required permissions cannot be acquired..... how to fix it?

Lars Larsen
Reply

Hi,
I have just downloaded the latest DW build (19.2.4.3) and placed it on a Windows 2008 Server (IIS7). But I can not start the site. I get this errormessage:

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 evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7606467
   System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57

[FileLoadException: Could not load file or assembly 'ABCpdf, Version=6.0.0.9, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' 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.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'ABCpdf, Version=6.0.0.9, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +232
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337

[HttpException (0x80004005): Could not load file or assembly 'ABCpdf, Version=6.0.0.9, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'ABCpdf, Version=6.0.0.9, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8901019
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

 
 

How does one fix this error?

Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer
Hi Lars,

Did you unblock the ZIP file before you installed as explained here: http://devierkoeden.com/articles/custom-modules-part-1-introduction.aspx

If not, you'll need to delete the Dynamicweb files and repeat the installation.

Cheers,

Imar

Votes for this answer: 0
 
Lars Larsen
Reply

Hi Lars,



Did you unblock the ZIP file before you installed as explained here: http://devierkoeden.com/articles/custom-modules-part-1-introduction.aspx



If not, you'll need to delete the Dynamicweb files and repeat the installation.



Cheers,



Imar



Hi Imar,
thanks for your reply. I had not unblocked the zip archive! I was not aware of this security feature. But after unbloking the zip archive, doing a reinstall of the files and doing a recycle of the application pool my site started with out any problems.
Thanks a lot, you saved my day :-) 
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
You're welcome.

This feature was introduced in a service pack for Windows XP and has been there since. But I think it has caused more grieve than protection, as it's such a hidden feature.... ;-)
 

Imar

 
Lars Larsen
Reply

You're welcome.



This feature was introduced in a service pack for Windows XP and has been there since. But I think it has caused more grieve than protection, as it's such a hidden feature.... ;-)

 


Imar


Yes, you're right about the "grieve". I think it's very odd that one can unzip the file without Windows notifing about the blocking of the file!

 

You must be logged in to post in the forum