Monthly Archives: March 2014

Dynamics CRM 2011/2013: Change web address

One of the most common tasks with a Dynamics CRM installation must be to change the web address (URL) to a user-friendly host header. But documentation on how to is hard to find. Here’s how I did it.

Thanks to: http://social.microsoft.com/Forums/en-US/b829d747-ff8c-435f-ad82-01dc2bca60b9/crm-2011-change-url?forum=crmdeployment

  • Update the IIS bindings for the CRM 2011 website on the server running CRM to the new value you want to use
    • Open IIS Manager
    • Select the Microsoft Dynamics CRM website
    • Click ‘Bindings’ in the action panel at the right of the screen
    • Select the binding to modify
    • Click ‘Edit’ and modify the host name and port to the new value.
    • Close the dialog and IIS Manager.
  • Update the ServerURL registry entry with the new URL you want to use. The registry entry can be found at KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM. Note that the key value should be of the form http(s)://<New URL>:<Port Number>/MSCRMServices
  • Modify the global settings for CRM from within the Microsoft Dynamics CRM Deployment Manager*:
    • Start the Microsoft Dynamics CRM Deployment Manager
    • Right-click on the ‘Microsoft Dynamics CRM’ entry at the top of the left pane of the window shown
    • Click ‘Properties’
    • Select the ‘Web Address’ tab on the dialog which is shown
    • Modify the addresses shown appropriately. Note that if the binding type is modified from HTTP to HTTPS you will need to install the appropriate certificate into IIS as well.
    • Click OK to close the dialog and close Microsoft Dynamics CRM Deployment Manager
  • Restart the Microsoft Dynamics CRM Asynchronous Processing Service, or restart the server
  • Make sure you have set your SPN’s correctly. Add SPN for the domain account running your CRM applicationpool. I needed three SPN records to make it work. Without all of them I received a Not Authorized error. “Error 401. The requested resource requires user authentication” 

    • Add them by running command “SETSPN -A HTTP/crm.domain.com DOMAIN\CRMServiceAccount
    • I needed: HTTP/computername, HTTP/computername:5555 and HTTP/crm.domain.com
  • Then Add entry to DNS :

sth, crm, dev, auth, to indicate to server IP

  • Then go to registry:

In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, and then click OK.
Quit Registry Editor, and then restart your computer.

(I believe this last step is only necessary to browse the friendly URL from the server)