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 7675011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:51:54+00:00 2026-05-31T16:51:54+00:00

I am using the EWS Managed API 1.2 in my C# .NET 3.5 Web

  • 0

I am using the EWS Managed API 1.2 in my C# .NET 3.5 Web application.
I have an exchange user which can impersonate the user logged into my application to create/update their calendar items on exchange.

The issue is that upon initial creation of this ExchangeService object I have to wait 24 seconds. This wait is unacceptably long if it happens upon each action so my solution is to store the ExchangeService object inside the session. This still has the initial overhead of 24 seconds for each user which is OK but I feel like I am trying to solve this incorrectly. Is there a standard way to instantiate this? For example on application start and then the one object is used by multiple people? Or a standard place to put an instance of the ExchangeService object? I can’t seem to find examples of this kind of use in an application – all the examples I see show the instantiation happen in each request which would make for many very lengthy requests!

I also thought it may be possible to create it in another thread however the thread could not access the session that created it.

EDIT #2
See my answer below.

  • 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-05-31T16:51:56+00:00Added an answer on May 31, 2026 at 4:51 pm

    I have resolved my problem.

    Incase anyone else is a foolish as me, my issue was that for each creation I was using this: service.AutodiscoverUrl("user@domain.com");
    Once you have done the initial auto discover, you should use the address of the exchange service found in that call. Then you can just set the URL to that, foregoing the autodiscover call.

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

Sidebar

Related Questions

We are using EWS Managed API which polls MS Exchange for new mail messages
I have code to send email using Exchange Web Services (EWS 1.1 API). There
Is there a way to search Exchange using the EWS Managed API for all
I've written a C# program using managed Exchange Web Services (EWS) to query a
I have a program that subscribes to multiple Exchange 2010 mailboxes using EWS Managed
Using EWS managed api v1.1, I can successfully save/set the contact Title or honorific
Is there a way, using Exchange Web Services Managed API, to query for a
I'm using Exchange web services, trying to create a calendar entry in another user's
We have begun to use the EWS Managed API to send email via MS
I have recently tried to write an application in c# using EWS to read

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.