locked
Can't access to the portal after authorization CRM2016 RRS feed

  • Question

  • After installing CRM 2016 on-premise evrything works fine, but after 1 day I have an error
    "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 Suppor"

    I'm search in the community that I need check Event log and what I found, please help me with this:

    This is ASP.NET 4.0 Warning, I think because of this I can't run CRM
    3005
    An unhandled exception has occurred.
    23.05.2017 23:27:40
    23.05.2017 17:27:40
    36fc664cd6404408a8d6f4a15f429f30
    26
    9
    0
    /LM/W3SVC/1/ROOT-2-131400019631183507
    Full
    /
    C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
    CRM
    7408
    w3wp.exe
    VILED\CRMADMIN
    CrmException
    SecLib::RetrievePrivilegeForUser failed - no roles are assigned to user. Returned hr = -2147209463, User: 2016c1cd-c43e-e711-80b8-00155d480309 в Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal() в Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute() в Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey) в Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context) в Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context) в Microsoft.Crm.Web.GlobalBase.BuildErrorHandlerUri(String errorHandlerPage, ErrorInformation errorInformation) в Microsoft.Crm.MainApplication.Application_OnPostAuthenticateRequest(Object sender, EventArgs eventArguments) в System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    http://85.17.72.3/default.aspx
    /default.aspx
    93.73.122.73
    VILED\CRMADMIN
    True
    Negotiate
    VILED\CRMADMIN
    821
    VILED\CRMADMIN
    True
    в Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal() в Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute() в Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey) в Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context) в Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context) в Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context) в Microsoft.Crm.Web.GlobalBase.BuildErrorHandlerUri(String errorHandlerPage, ErrorInformation errorInformation) в Microsoft.Crm.MainApplication.Application_OnPostAuthenticateRequest(Object sender, EventArgs eventArguments) в System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

     
    Tuesday, May 23, 2017 6:31 PM

All replies

  • Hello Oleg,

    Based on log you provided your user doesn't have any security roles assigned.

    PS Ане и Оксане привет передавай.


    Dynamics CRM/Business Solutions MVP
    Read My blog

    Tuesday, May 23, 2017 7:06 PM
    Moderator
  • Thanks.
    But how I can set Security roles without access to the CRM?
    When I'm open it in a browser I have an error.
    Tuesday, May 23, 2017 7:13 PM
  • It's not recommended but I would suggest to use SQL Insert directly to CRM DB.

    Before doing next steps take a backup of CRM and store it somewhere.

    1. Get your userid - Select systemuserid, fullname From SystemUser should give you the list of users with their ids. Find userid and store it somewhere.

    2. Get Sysadmin Role Id - Select roleid, name from Role should give you the list of roles with their ids. Find roleid that corresponds System Administrator role and store it somewhere.

    3. Check that your user doesn't have roles - Select * From systemuserroles where systemuserid = '{id from step 1}' and roleid = '{id from step 2}'. If you see nothing - it's ok and you can proceed. If you see that your user has roles - looks like you have other kind of issue and don't do next steps.

    4. Do following insert - Insert Into SystemUserRolesBase(roleid, systemuserid, systemuserroleid) Values ('{id from step 2}', '{id from step 1}', newid())


    Dynamics CRM/Business Solutions MVP
    Read My blog

    Tuesday, May 23, 2017 7:31 PM
    Moderator
  • Hi

    I would like to solve this issue in your system.

    Could you add me on skype ? so we can discuss in detail.

    skype is : mahesh.variance

    Looking forward to your positive response

    Thanks 

    Mahesh

    Wednesday, May 24, 2017 11:08 AM