web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Radu Chiribelea Profile Picture
    6,667 on at

    Hello,

    Please include also the call stack of the exception. This will give us more details on what the issue is.

    On what Build are you with your CRM Server? (Major & Update Rollup_

  • Community Member Profile Picture
    on at

    # CRM Tracing Version 2.0
    # LocalTime: 2018-07-10 01:58:10.013
    # Categories:
    # CallStackOn: No
    # ComputerName: EIZOAD
    # CRMVersion: 8.0.0000.1088
    # DeploymentType: OnPremise
    # ScaleGroup:
    # ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools, VssWriter, EmailConnector

    [2018-07-10 01:58:10.013] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 73 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: c8fe93ae-f285-495c-a15b-77278bd8fa9a | CrmArgumentException..ctor ilOffset = 0x13
    at CrmArgumentException..ctor(String message, String parameterName) ilOffset = 0x13
    at Exceptions.ThrowIfEmpty(String value, String parameterName) ilOffset = 0x1A
    at FederatedUserInformation.GetUserToken(String userPrincipalName) ilOffset = 0x0
    at CrmSessionAuthenticationManager.TryGetDefaultOrganizationId(SessionSecurityToken sessionToken) ilOffset = 0x0
    at CrmSessionAuthenticationManager.AuthenticateSessionSecurityToken(SessionSecurityToken sessionToken, Boolean writeCookie) ilOffset = 0xF7
    at WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request) ilOffset = 0x13F
    at WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) ilOffset = 0x1D
    at CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) ilOffset = 0xC0
    at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x5D
    at HttpApplication.ExecuteStepImpl(IExecutionStep step) ilOffset = 0x64
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
    at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27A
    at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31
    at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xB0
    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x131
    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0
    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
    at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF
    at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1E7
    at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x0
    >Crm Exception: Message: Expected non-empty string., ErrorCode: -2147220989, InnerException: System.ArgumentException: Expected non-empty string.
    Parameter name: userPrincipalName

    ---------------------------------------------------------------------------

    Version: 8.0.0000.1088

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi,

    For claim based authentication, please check this url -

    dynamicspal.com/.../claims-based-authentication

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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
    on at

    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!!!

  • Community Member Profile Picture
    on at

    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:/

  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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
    on at

    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

  • Community Member Profile Picture
    on at

    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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans