Dynamics CRM 4 Email Connector and IIS 7 Issue
// April 28th, 2009 // No Comments » // Dynamics CRM 4, IIS 7
I was recently rolling out a test environment for CRM 4 and trying to get the email connector working. I was looking through the logs and I couldn’t figure out why suddenly the mail connector would stop searching email. I noticed that it was getting a 401 error so I did some troubleshooting and it looks like it’s an issue with IIS 7 and how CRM 4 sends multiple requests. I was able to fix the problem by simply going through and and turning on double-encoded requests. This normally is turned off to protect against attacks but to get it working internally I had to disable it. To enable double escaping just drop to a command prompt and type the following (if the site is different please change it):
c:\windows\system32\inetsrv\appcmd set config “Default Web Site”
-section:system.webServer/security/requestfiltering -allowDoubleEscaping:true
If you want to read more about the protection please go here:
http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/