locked
How to bypass Forefront TMG firewall with Exchange Server Webservices RRS feed

  • Question

  • We have an exchange server which uses Forefront TMG.I tried consuming the Web Service using Exchange Web Service API, it worked fine in my one of the cloud server without Forefront TMG (setup in my local machine).The code which I tried in the machine without Forefront TMG is as follows.

    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
    service.Url = new Uri("https://example.com/EWS/Exchange.asmx");
    service.Credentials = new NetworkCredential("username", "password");
    
    FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10));

    But with the same code I tried in machine with Forefront TMG. I get a 403 Forbidden error.Is there any way I can programmatically bypass the TMG.



    • Edited by Jayaraj.K Thursday, February 6, 2014 7:18 AM
    Thursday, February 6, 2014 7:14 AM