web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • halbot Profile Picture
    on at

    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?

  • halbot Profile Picture
    on at

    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.

  • Mglaser Profile Picture
    9 on at

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

  • Community Member Profile Picture
    on at

    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)

  • halbot Profile Picture
    on at

    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?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans