Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:01:41+00:00 2026-06-18T02:01:41+00:00

I am currently troubleshooting an issue related to Exchange Web Services. The issue is

  • 0

I am currently troubleshooting an issue related to Exchange Web Services. The issue is that, upon opening a connection to a Streaming Subscription (via the StreamingSubscriptionConnection object), the operation hangs when calling the Open method. Here is the code that hangs, for reference:

_streamingSubscriptionConnection = new StreamingSubscriptionConnection(_exchangeService, _connectionLifetime);
_streamingSubscriptionConnection.AddSubscription(_subscription);
_streamingSubscriptionConnection.OnNotificationEvent += new StreamingSubscriptionConnection.NotificationEventDelegate(OnNotificationEvent);
_streamingSubscriptionConnection.OnSubscriptionError += new StreamingSubscriptionConnection.SubscriptionErrorDelegate(OnSubscriptionError);
_streamingSubscriptionConnection.OnDisconnect += new StreamingSubscriptionConnection.SubscriptionErrorDelegate(OnDisconnect);
_streamingSubscriptionConnection.Open();

It usually takes about two minutes and then it throws a ServiceRequestException whose message is:

The request has failed. The operation has timed out.

It’s also worth mentioning that even if I set the timeout to a minute, it will still take longer than a minute and then throw this exception. The call never gets past that Open command.

My questions are, has anyone come across this in the past? Additionally, are there any tools available that I can use to diagnose any connection issues to determine if the exception is on my end, the Exchange servers end, or somewhere in the middle? I’ve tried Fiddler and Microsoft Network Monitor to look for any patterns but I’m having a hard time discerning anything.

Thanks in advance!

EDIT: To add on to this, if I add a trace listener I get quite a lot of output. I can see it retrieve the Subscription Id and then attempt to connect. When it sends out the request to connect, this is what is logged between the time the Open command is issued and the timeout:

<Trace Tag="EwsRequestHttpHeaders" Tid="10" Time="2013-01-24 19:16:18Z">
      POST /ews/exchange.asmx HTTP/1.1
      Content-Type: text/xml; charset=utf-8
      Accept: text/xml
      User-Agent: ExchangeServicesClient/14.03.0032.000
      Accept-Encoding: gzip,deflate      
</Trace>

<Trace Tag="EwsRequest" Tid="10" Time="2013-01-24 19:16:18Z" Version="14.03.0032.000">
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Header>
            <t:RequestServerVersion Version="Exchange2010_SP1" />
        </soap:Header>
        <soap:Body>
            <m:GetStreamingEvents>
                <m:SubscriptionIds>
                    <t:SubscriptionId>GABsdGNmaXN3bXNnY2EwNi5mbmZpcy5jb20QAAAAnQCowdNSt0iTEhqVr8+a1GPHu2t+yM8I</t:SubscriptionId>
                </m:SubscriptionIds>
                <m:ConnectionTimeout>30</m:ConnectionTimeout>
            </m:GetStreamingEvents>
        </soap:Body>
    </soap:Envelope>
</Trace>

I’m attempting to rule out network issues, but having a bit of a hard time doing so. Any advice is welcome at this point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:01:42+00:00Added an answer on June 18, 2026 at 2:01 am

    For those who come after me, this issue wound up not being anything related to .Net or the EWS library.

    The issue wound up being related to persistence settings on the load balancers in our company. With our load balancers, if any kind of persistence is enabled for EWS streaming subscription calls, those connections will fail. Unfortunately, at the time I wasn’t aware there was a load balancer between myself and the Exchange server since developers don’t have access to that infrastructure here.

    Regardless, hopefully this helps someone out in the future!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently troubleshooting a large and unwieldy GUI-based tool in Visual Studio, and
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently working with converting SQLException error messages into messages that are more useful for
Im currently working on troubleshooting an old job which is taking long in running
I'm troubleshooting a caching issue on a set of secured pages and have realized
In a recent project, I had the pleasure of troubleshooting a bug that involved
I'm currently using an SQL CONNECT statement to access a remote system. While troubleshooting,
I'm troubleshooting a nasty stored procedure and noticed that after running it, and I
I'm having a strange issue that I haven't encountered before. I'm working on the
Currently im trouble shooting some code that I wrote to create a chat room.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.