We have two OrgNames in our test environment named say OrgName1 and OrgName2.
The Test environment uses IFD.
In the OrgName1_MSCRM, the OrganizationBase table has two entries, one for each Organisation Name.
Connections to OrgName1 via the Outlook add-in failed so I decided to look for a solution and came across the following web page:
which provide instructions on how to resolve the issue.
On deleting the entry for the OrgName2 from the OrganizationBase table, we could no longer log into OrgName1.
I have deleted OrgName2 from the Deployment Manager but OrgName1 still refuses connections. Also I have re-imported OrgName2 and it is available for access.
I have also deleted OrgName1 from the Deployment Manger and re-imported as I did with OrgName2 but no changes.
The error message below appears in the Event Viewer. Assistance is required.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 01/09/2016 18:40:19
Event time (UTC): 01/09/2016 17:40:19
Event ID: 8e622a9cd37a46a8bdf23d961ee753a0
Event sequence: 1030
Event occurrence: 38
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-131172172590793188
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: CGS-VSVR-AS56
Process information:
Process ID: 139028
Process name: w3wp.exe
Account name: CAMPUS\SA_CRM_D_INSTALL001
Exception information:
Exception type: CrmException
Exception message: The user for which we are checking a privilege should be in the same org as the context provided
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
at Microsoft.Crm.Controls.Header..ctor(Boolean isControlHeader)
at Microsoft.Crm.Controls.BasicHeader..ctor()
at Microsoft.Crm.Application.Controls.AppHeader..ctor()
at Microsoft.Crm.MainApplication.Application_OnPreRequestHandlerExecute(Object sender, EventArgs eventArguments)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Request information:
Request URL: crmtest.gold.ac.uk/.../LookupMruWebService.asmx
Request path: /GoldsmithsTest/AppWebServices/LookupMruWebService.asmx
User host address: 172.16.15.65
User: CAMPUS\xxxxxxx
Is authenticated: True
Authentication Type: Negotiate
Thread account name: CAMPUS\SA_CRM_D_INSTALL001
Thread information:
Thread ID: 126
Thread account name: CAMPUS\SA_CRM_D_INSTALL001
Is impersonating: True
Stack trace: at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.RetrieveMultipleCommand.Execute()
at Microsoft.Crm.Application.Caching.CustomResourceLoader.GetCustomResources(IOrganizationContext context, Int32 cacheKey)
at Microsoft.Crm.Application.Caching.CustomResourceLoader.LoadCacheData(Int32 key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, Boolean getSystemString, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.CustomResourceManager.TryGetCultureString(String name, CultureInfo culture, IOrganizationContext context)
at Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetCultureString(String name, CultureInfo culture, IOrganizationContext context)
at Microsoft.Crm.Controls.Header..ctor(Boolean isControlHeader)
at Microsoft.Crm.Controls.BasicHeader..ctor()
at Microsoft.Crm.Application.Controls.AppHeader..ctor()
at Microsoft.Crm.MainApplication.Application_OnPreRequestHandlerExecute(Object sender, EventArgs eventArguments)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details: