Answered by:
CRM 2011 with "Maps for CRM 2011" Error - HTTP status 401: Unauthorized

Question
-
We are testing the Maps for CRM 2011 Plugin from http://dynamics.pinpoint.microsoft.com/en-US/applications/maps-for-crm-2011-12884910478 When I update a case with an address and save it I get a "Business Process Error, Request failed with HTTP Status 401 Unauthorized. It appears to me that the CRM server or the plug in is trying to access Bing Maps on the Internet and is blocked by our firewall. How can I get the server or plugin to use our Proxy server for Internet access?
Tuesday, April 5, 2011 3:56 PM
Answers
-
You can use System.Net namespace to tackle this proxy issue, See this - http://support.microsoft.com/default.aspx?scid=kb;en-us;318140
Remember - from the above article (web.config) approach is ruled out for you because plugins don't support System.Configuration, but you can specify the proxy in the code rather than the config as described.
If it still doesn;t work, please post your code where you are accessing the Bing WS from plugin..
Manny Grewal || Australia
- Proposed as answer by Manny Grewal Thursday, April 7, 2011 12:01 AM
- Marked as answer by TechGuy18 Monday, April 11, 2011 3:52 PM
Thursday, April 7, 2011 12:01 AM
All replies
-
1. Is it a on-premise deployment or online where the plugin is executing?
2. Are you using any intermediary web service (called from your plugin) which calls the Bing Maps WS.
3. Is Bing WS a REST based service or you have created its proxy which needs some credentials
Because you are getting 401 error, it seems the issue is inside the domain/firewall not outside it.
Manny Grewal || AustraliaWednesday, April 6, 2011 6:03 AM -
The server is housed locally and the plugin was installed on the system by one of our users. Since the plugin works with Bing maps I figured it required Internet access. As a test I temporarily allowed the CRM server direct access to the Internet through the firewall and the errors go away and the plugin runs as expected, the problem returns when the access is removed. I need to figure out how to tell the CRM application or the plugin to access the Internet with Proxy settings not direct access through the firewall.
Wednesday, April 6, 2011 3:58 PM -
You can use System.Net namespace to tackle this proxy issue, See this - http://support.microsoft.com/default.aspx?scid=kb;en-us;318140
Remember - from the above article (web.config) approach is ruled out for you because plugins don't support System.Configuration, but you can specify the proxy in the code rather than the config as described.
If it still doesn;t work, please post your code where you are accessing the Bing WS from plugin..
Manny Grewal || Australia
- Proposed as answer by Manny Grewal Thursday, April 7, 2011 12:01 AM
- Marked as answer by TechGuy18 Monday, April 11, 2011 3:52 PM
Thursday, April 7, 2011 12:01 AM -
Thanks for the info, we tried the web.config file trick and not only did it not work, it broke the site completely. Thanks for the tip about the plug in not supporting this, I was unsure if it was a mistake on my end. I have pointed out the code to our programmer to see if he can modify the plugin. I'll let you know if he gets it to work.Thursday, April 7, 2011 11:55 PM
-
Its futile to use web.config as I pointed out earlier that its ruled out in your case.
Remember - from the above article (web.config) approach is ruled out for you because plugins don't support System.Configuration
Hopefully specifying the proxy in the class's property will work. If not, please share more details around how you are calling the WS. Its too difficult to guess, without much details.
Manny Grewal || AustraliaFriday, April 8, 2011 3:15 AM -
our programmers have decided to make thier own plugin, thanks for your help. I am sure the link you supplied will come into play.Monday, April 11, 2011 3:52 PM