Options

Required permissions cannot be acquired - error

derekderek Member Posts: 22
edited 2008-06-04 in Navision e-Commerce
Hi,

I just get installed Nav 4.0 SP3 and all necssary programs to run EP in SBS2003. All other thinks look fine: NAS is started, NAS_user session run on NAV and no errors detected on Event Viewer. But, now i can't open the local webpage. When i open the browser, I get an error: "Required permissions cannot be acquired". Even i use administrator rights and this user have also nav account. Have anyone get this kind an error?

SBS2003 installation includes "ready to use" webpage for company use. So, could this NAV EP installation override this page, if these both pages are installed same place = http://localhost?

Comments

  • Options
    kinekine Member Posts: 12,562
    EP modify the web.config of the site. I found some problems when more sites are used (just default site web.config was changed and other sites has this problem with permissions). You can look into this file, and all changes added by EP copy into other web.config files. Generally it is setting about trusting to EP webparts.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    derekderek Member Posts: 22
    I solved it out.
    Thanks for reply Kine.

    The error came from web.config.
    When install SBS2003 it makes two web pages from default : localhost (site for maintaining) and companyweb (regular wss site). Both of these pages have a own web.config. Error came because I install EP front end to IIS with default web site (in this situation it was localhost). And then EP installation changes /modifies to a wrong web.config.
    Now I reinstall EP and browse it to the right web.config (companyweb web.config).
  • Options
    icobaniicobani Member Posts: 70
    Hi all,

    I m not understand solve way. I get same error when runing http://localhost/BusinessNotificationMe ... rvice.asmx
    Can u explain how can I solve this problem.


    thanks.

    Server Error in '/BusinessNotificationMessageBus' 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 evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2770052
    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 'Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=59776d37495308c4' 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) +54
    System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
    System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
    System.Reflection.Assembly.Load(String assemblyString) +25
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

    [ConfigurationErrorsException: Could not load file or assembly 'Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=59776d37495308c4' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +211
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
    System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +185
    System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +230
    System.Web.Compilation.BuildManager.CompileGlobalAsax() +49
    System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462

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

    [HttpException (0x80004005): Could not load file or assembly 'Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=59776d37495308c4' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279
    Ibrahim COBANI | Dynamics-NAV Developer Team Manager
    I m a Consult

    E-Mail: ibrahim@imaconsult.com
    My BLOG
Sign In or Register to comment.