Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

Posted on by

Hi

We are try to configure Dynamics CRM (8.2) to connect to Exchange Online, in order to sync appointments. We have completed everything in this guide: https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt703269(v=crm.8) using server side sync, ADFS SSO is all working no issues.

However, the issue is that when it tries to connect to Exchange Online, it refuses to use the web proxy settings on the system, and instead tries to go directly out, which is of course blocked. We have tried:

- Specifying proxy settings in the System using IE, this works fine for web browsing so we know the proxy is working.

- Setting using netsh winhttp 

- Putting system.web section in the web.config file with the proxy details specified

None of these works or makes any difference. The proxy does not require authentication, and works for all other Office 365 services (e.g. Exchange migrations).

Does anyone have any idea how to make it use a proxy for outbound connections to Exchange Online?

Thanks

*This post is locked for comments

  • halbot Profile Picture
    halbot on at
    RE: Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

    Many other steps, but this was the main piece we were missing. We could see the connection just try to go straight out of the gateway without using the proxy (just using e.g. netstat | findstr ":443") and not using the proxy port. Adding above and restarting both async services got it at least using the proxy.

    We then basically followed the guide here: docs.microsoft.com/.../mt703269(v=crm.8)

    Although we found IDP is not required, ADFS/SSO is not required, and the main issue was the certificate permissions which must be granted to the async service account otherwise you get token errors.

    So is it not even trying to use the proxy? What error are you getting?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

    Unfortenately that didn't solve the issue in my case. Did you have to perform any additonal steps? (I did a restart of front- and backend server)

  • Mglaser Profile Picture
    Mglaser 9 on at
    RE: Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

    I am facing exactly the same issue. Thank you for that - I will try if that works for us as well!

  • halbot Profile Picture
    halbot on at
    RE: Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

    OK we finally got the proxy working:

    Take a backup of the file C:\Program Files\Microsoft Dynamics CRM\Server\bin\CrmAsyncService.exe.config

    Add in the proxy server settings inside the <configuration> tag:

    <system.net>  

       <defaultProxy>  

           <proxy  proxyaddress="http://proxy:80&quot;  

                   bypassonlocal="true"  

           />  

           <bypasslist>  

               <add address="[a-z]+.domain.com$" />  

           </bypasslist>  

       </defaultProxy>  

    </system.net>

    See docs.microsoft.com/.../proxy-configuration for documentation on dotnet proxy syntax.

  • halbot Profile Picture
    halbot on at
    RE: Connect Dynamics 365 (on-premises) to Exchange Online via Web Proxy

    FYI we have raise a support call with Microsoft for this. No joy as yet.

    I wonder if anyone has ever done this with a proxy server? Pretty normal for an Enterprise environment?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans