locked
Accessing CRM website error -reg RRS feed

  • Question

  • Hi,

    i have installed MS dynamics CRM 3.0.

     

     when i try to access the CRM website (in IIS), i am getting the following error :

     

    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 evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2709488
       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 'Microsoft.Crm.Application.SafeHtml, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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) +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 'Microsoft.Crm.Application.SafeHtml, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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() +3596761
       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) +180
       System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3561465
       System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462
    
    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Crm.Application.SafeHtml, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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) +521
    
    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Crm.Application.SafeHtml, Version=3.0.5300.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3540923
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +275
    



    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

     

    can anyone help me solve this issue ASAP.

     

     

    Regards,

    Bharath V V

    Wednesday, September 5, 2007 12:28 PM

Answers

  • Looks like there are either some code access permissions set within machine.config, or there are some NTFS permissions on files in the CRM web site. In either case you are best checking with whoever is responsible for configuring security on your CRM server
    Wednesday, September 5, 2007 4:41 PM
    Moderator

All replies

  • Your CRM web-site is configured to use ASP .Net 2.0; you need to change it to ASP .Net 1.1 - you do this via IIS Manager

     

    Wednesday, September 5, 2007 12:36 PM
    Moderator
  • Hi david,

     

    thanks for the reply.

    i have change that and restarted my iis, now a new error is appearing

     

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Required permissions cannot be acquired.

    Source Error:

    [No relevant source lines]

    Source File: machine.config    Line: 258


    Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407

     

    Regards,

    Bharath V V

    Wednesday, September 5, 2007 12:43 PM
  • Looks like there are either some code access permissions set within machine.config, or there are some NTFS permissions on files in the CRM web site. In either case you are best checking with whoever is responsible for configuring security on your CRM server
    Wednesday, September 5, 2007 4:41 PM
    Moderator
  • Hi,

    I am facing the same issue,I am new to microsoft and CRM,and don't exctly understand how to implement this solution can someone describe it.

    thanks in advance.

    Desire


    Friday, December 28, 2012 5:55 AM