When saving a record in CRM, receiving an error that says “The request failed with HTTP status 400: Bad Request”.
Typically this is caused when your CRM port is not 80 or 5555. If it is not one of these 2 ports, you need to do the following. Create a LocalSdkHost registry key on the Microsoft Dynamics CRM 4.0 server. To do this, follow these steps: Click Start, click Run, type regedit, and then click OK. Locate the following registry subkey:
HKEY_LOCAL_MACHINE SOFTWARE Microsoft MSCRM
Right-click MSCRM, click New, and then click String Value. In the Name box, type LocalSdkHost.
Right-click LocalSdkHost, and then click Modify. In the Value box, type the name of the Microsoft Dynamics CRM server or the host header, and then click OK.
Note Do not specify http:// or the port number.
Locate the LocalSdkPort key at the same location. Verify that the port that is listed matches the port that is being used for the CRM Web site. If the value of the LocalSdkPort key is incorrect, right-click LocalSdkPort, and then click Modify. Type the correct port number, and then click OK.