Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"InternetSetCookie failed" error when you configure Microsoft Dynamics CRM for Microsoft Office Outlook


View products that this article applies to.

Symptoms

When you try to configure Microsoft Dynamics CRM for Microsoft Office Outlook, you receive the following error message:

"There is a problem communicating with the Microsoft Dynamics CRM server. The server might be unavailable. Try again later. If the problem persists, contact your system administrator."

When you click details, the following additional detail is shown:

InternetSetCookie failed with error code: 87    at Microsoft.Crm.CookieManager.SetCookies(Uri webApplicationUri, CookieCollection cookies, CookieDataFlags cookieFlags, String p3pHeader)
   at Microsoft.Crm.CookieManager.SetCookies(Uri webApplicationUri, CookieCollection cookies)
   at Microsoft.Crm.Outlook.ClientAuth.ClientAuthProviderBase`1.SetWebAppCookies()

↑ Back to the top


Cause

The server name in the URL contains an underscore character ("_"). Example: http://crm_server.

Microsoft Dynamics CRM for Microsoft Office Outlook uses the InternetSetCookieEx function which does not work if the URL contains an underscore character.

↑ Back to the top


Resolution

1. Create a DNS alias for the server that does not use an underscore character ("_"). Example: http://crmserver.

2. Within Deployment Manager on the Microsoft Dynamics CRM server, select Microsoft Dynamics CRM in the upper-left corner and then click Properties.

3. Click the Web Address tab and update all URLs to use the DNS alias.

4. Click OK.

5. Attempt to configure Microsoft Dynamics CRM for Microsoft Office Outlook using the new URL that does not contain an underscore character.

↑ Back to the top


More Information

PRB: Session Variables Do Not Persist Between Requests After You Install Internet Explorer Security Patch MS01-055
https://support.microsoft.com/kb/316112

Internet Explorer Cookie Internals (FAQ)
http://blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx


↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 3092666
Revision : 1
Created on : 1/7/2017
Published on : 8/27/2015
Exists online : False
Views : 308