Wednesday, September 17, 2008

MSCRM4 Diagnostic: Plug-in throwing exception: "The request failed with HTTP status 400: Bad Request"

This error:

• Could be caused by the internal URL being referred by the plug-in is incorrect
• When plug-in executing CrmService action (e.g. Update, Create, and etc.), the error will be thrown.

Details of the error:


Details of the error while debugging in Visual Studio:



Resolution:

1. On the server, run regedit.exe.
    Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM.

2. Add following values under the MSCRM node:
Name: LocalSdkHost
Type: String
Value: <web_server_name> (host name or host header)

Name: LocalSdkPort
Type: DWORD
Value: <web_server_port_number>
3. Retry the plug-in execution.

No comments: