Answered by:
Wrong URL returned by GetCrmServerUrl after Microsoft Dynamics CRM server move

Question
-
Hi All,
We have moved our CRM 4.0 (on-premise) from oldserver to a newserver, and since then i am getting
the following error when i am tring to execute custom aspx page from actionmenu.The remote name could not be resolved: 'devcrm01' (devcrm01 is our old server)
when i use the CrmDiagTool4.exe, then found that
The GetCrmServerUrl function called by AuthenticationPipeline still returns
oldserver Why?On the new server, CRM 4.0 is fresh installation, then restored database from oldserver.
CRM 4 has been uninstalled, no trace of oldserver in config files, registry
or database.Where this this metadata stored to keep reference on server removed from
deployment ?
Thanks for your help.
Thanks
Tom
Detailed debug traceat MetadataCacheConfig.GetCrmServerUrl(Guid organizationId) at MetadataCacheConfig.GetServerUrl(Guid organizationId) at Helpers.CreateMetadataWebService(UrlType urlType, Guid organizationId) at DynamicMetadataCacheLoader.LoadDataSetFromWebService(Guid orgId) at DynamicMetadataCacheLoader.LoadCacheFromWebService(LoadMasks masks, Guid organizationId) at DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context) at MetadataCache.LoadCache(IOrganizationContext context) at MetadataCache.GetInstance(IOrganizationContext context) at BusinessEntityMoniker..ctor(Guid id, String entityName, Guid organizationId) at UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context) at ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context) at BasicCrmCache`2.CreateEntry(TKey key, IOrganizationContext context) at BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context) at SecurityLibrary.GetUserInfoInternal(WindowsIdentity identity, IOrganizationContext context, UserAuth& userInfo) at SecurityLibrary.GetCallerAndBusinessGuidsFromThread(WindowsIdentity identity, Guid organizationId) at CrmWindowsIdentity..ctor(WindowsIdentity innerIdentity, Boolean publishCrmUser, Guid organizationId) at WindowAuthenticationProviderBase.Authenticate(HttpApplication application) at AuthenticationStep.Authenticate(HttpApplication application) at AuthenticationPipeline.Authenticate(HttpApplication application) at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at ApplicationStepManager.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) >GetCrmServerUrl returned http://devcrm01/MSCrmServices
Wednesday, May 27, 2009 8:09 AM
Answers
-
Hi Tom,
check the following entrys in the MSCRM_config database in the table deploymentproperties.
You will find three entrys with this names in the field "ColumnName"
ADSdkRootDomain, ADWebApplicationRootDomain and AsyncSdkRootDomain
By this entrys check the field nvarcharcolumn. There you find te web-address of your crm server.
I think, in one of them you will find the old server and have to change it to the name of the new server.
Viele Grüße
Michael Sulz
axcentro GmbH- Proposed as answer by Michael Sulz Wednesday, May 27, 2009 8:39 AM
- Marked as answer by Thomas Thankachan Friday, May 29, 2009 7:39 AM
Wednesday, May 27, 2009 8:39 AM
All replies
-
Hi Tom,
check the following entrys in the MSCRM_config database in the table deploymentproperties.
You will find three entrys with this names in the field "ColumnName"
ADSdkRootDomain, ADWebApplicationRootDomain and AsyncSdkRootDomain
By this entrys check the field nvarcharcolumn. There you find te web-address of your crm server.
I think, in one of them you will find the old server and have to change it to the name of the new server.
Viele Grüße
Michael Sulz
axcentro GmbH- Proposed as answer by Michael Sulz Wednesday, May 27, 2009 8:39 AM
- Marked as answer by Thomas Thankachan Friday, May 29, 2009 7:39 AM
Wednesday, May 27, 2009 8:39 AM -
Hi Michael,
Thanks for the answer, your tip worked.
Now I have another issue on the same and I am not sure it is right place to ask, when I run custom plugins (.Execute method) it always popsup windows authentication window to accept username and password., and error is HTTP Error 401.1 - Unauthorized: Access is denied
do think anyother place the old servername or something else is causing this error.
Thanks
TomFriday, May 29, 2009 7:42 AM -
Thank you Michael. After 4 hours of research and trial and error, I now can install CRM on Outlook.
Thanks Again.
Rami
RamiMonday, August 16, 2010 10:44 PM