title: Interesting problem with ews managed api 2.0
body: <p>just started on a blank visual studio installation writing a new ews application.</p>
  <p>Everything went fine, i tested it with an testmail ive sended from my new application an everything works great.</p>
  <p>Next step should have been to retrieve two test-mails from my inbox via the &quot;findItems&quot; method, but when i'm trying this, i get always a timeout.</p>
  <p>i dont understand it, because sending e-mails works but retrieving gives a timeout.
  does anybody can help out here?</p>
  <p>thank you</p>
  <p>this is the code i use right now:</p>
  <pre><code>    {
          static void Main(string[] args)
          {
              
              ExchangeService service = new ExchangeService();
              service.Credentials = new WebCredentials(&quot;user&quot;, &quot;password&quot;);
              service.Url = new Uri(&quot;https://web.mydomain.com/EWS/Exchange.asmx&quot;);
  
              if (service != null)
              {
  
                  ItemView view = new ItemView(10);
                  view.PropertySet = new PropertySet(BasePropertySet.IdOnly, ItemSchema.Subject);
                  SearchFilter searchFilter = new SearchFilter.ContainsSubstring(ItemSchema.Subject, &quot;test&quot;);
                  
                  FindItemsResults&lt;Item&gt; findResults = service.FindItems(WellKnownFolderName.Inbox, searchFilter, view);
  
                  Console.WriteLine(findResults.TotalCount);
              }
  
          }
  
      }```
  </code></pre>