Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM is not opening showing error An error has occurred.

Posted on by Microsoft Employee

Dear Support

I want to configure claim based authentication of MS dynamics CRM with ADFS.

Enviornment -WS2012 R2 with DC and CRM and SQL installed

Client machine -WS2008 with ADFS in same domain

IF trying to login Dynamics,it is redirecting ADFS URL and after authentication I am receiving error:- 

An error has occurred. 

Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

 Under EIZOAD-w3wp(296#5E415CD4)-CRMWeb-20180710-1.log - found error

Crm Exception: Message: Expected non-empty string., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty string.

 

Under EIZOAD-Microsoft.Crm.Sandbox.HostService-bin-20180710-1.log- found error

>Crm Exception: Message: Access Denied. Reference number for administrators or support: #BFBCA0A9, ErrorCode: -2147187707

 

Now ,i want to know what i am missing all over.

We can take remote session ,if you want to see configuration.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Hello All

    Previous all issue resolved .Now i am getting issue already posted by someone:

    social.microsoft.com/.../error-while-accessing-adfs-when-enabling-claims-based-authentication-for-crm-2011

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    After resolving the above query , i am facing new issue :

    Server Error in '/adfs/ls' Application.

    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: Could not load file or assembly 'Microsoft.Crm' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 10:   </configSections>

    Line 11:   <system.web>

    Line 12:     <httpRuntime executionTimeout="300" maxQueryStringLength="8192" maxRequestLength="131072" requestValidationMode="3.0" encoderType="Microsoft.Crm.CrmHttpEncoder, Microsoft.Crm" />

    Line 13:     <httpModules>

    Line 14:       <add name="MapOrg" type="Microsoft.Crm.MapOrgEngine, Microsoft.Crm.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

    Source File: E:\CRMDyna\CRMWeb\web.config    Line: 12

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Crm' could not be loaded.

    WRN: Assembly binding logging is turned OFF.

    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

    Note: There is some performance penalty associated with assembly bind failure logging.

    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Issue resolved after adding GAC in CRM

    Found GAC under

    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools

    open CMD Run gacutil /i <dll path>

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Hello Radu

    My solution is working with HTTP but it fails with https.above error is displayed.

    Is it because adfs and everything is on same machine?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    i dont know this ,how to register any CRM assemblies in the GAC?

    CRM AppPool User -  it is running under Network Service.

    CRM installed on same machine but different drive

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Did you register any CRM assemblies in the GAC?

    Also the CRM AppPool User - is it running under Network Service or an AD User account? Does it have enough privileges on the machine where CRM is installed?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Hi 

    I am now able to Run CRM but when configure claim based running CRM using ADFS ,show this error

    Any update on this issue ,Please let me know-

    Server Error in '/adfs/ls' Application.


    Could not load file or assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    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.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    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.


    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    


    Stack Trace: 

    [FileNotFoundException: Could not load file or assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +225
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +110
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +22
       System.Reflection.Assembly.Load(String assemblyString) +34
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
    
    [ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +729
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +69
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +226
       System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +73
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +321
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +170
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +734
    
    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Crm, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +118
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +708




    Note://CRM Installed on Other drive than C:/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    Lets forget ADFS and claim based authentication for now,

    Normally if i am trying to login administrator on CRM,It shows

    An error has occurred. 

    Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support.

    Again,I created anant user in AD and tried login ,It shows

    No Microsoft Dynamics 365 user exists with the specified domain name and user ID

    A Microsoft Dynamics 365 user record does not exist with the specified domain name and user ID.

     

    Both administrator and anant are in deployment administrator,whereas member of four CRM default group ,has permission on CRM apppool SIte in IIS.

    I am not understanding after successful installation why these issues occuring?any help please.

    I can provide test environment remote session if required.

    As Radu Chiribelea suggested ,I updated CRM2016-Server-KB4046795-ENU-Amd64 too ,but no luck!!!

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    I think this looks like an old bug.

    Please install the latest Update Rollup and see if this fixes your issue.

    You have a list of all updates here: buildnumbers.wordpress.com/crm

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM is not opening showing error An error has occurred.

    I have already configured till here,when i am trying to access CRM ,credential window appears and then this error came.

    In event viewer i am getting Sandbox account -access denied.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans