The request failed with HTTP status 401: Unauthorized

May 20, 2010 at 3:00 PM

Hello

I received this error when I tried to click “Show contacts” on the CRM2OneNote:

System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at crmON.crmsvc_nsara.CrmService.Execute(Request Request)
   at CRMON.GetDataFromCrm.GetEntities(entityType eType, String callingAppName)
   at InitiateProcess.CRMForm.getContactBttn_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


It seems that CRM2OneNote doesn’t try to authenticate to the CRM server. How can I do that?
The value of the registry key “PlatformRoot” seems good: http://crm/MSCRMServices