Exchange-Server-Outlook-Mail-ThingsWeLearned
Creating an instance of Exchange web service (EWS) in ASP.NET (MVC) using CSharp:

First you will need to add web service to project then you will get instance of ExchangeServiceBinding() . You can initiate/invoke an instance of EWS using following code :

        /// <summary>
        /// Set all required configuration parameters
        /// </summary>
        public void Initialize()
        {
            try
            {
                // you can also get if from configuration file
                EmailAddress = "MyEmail@MyDomain.Com";                              //AppConfig.EmailAddress;
                UserName = "MyUserName";                                            //AppConfig.UserName;
                Password = "MyPassword";                                            //AppConfig.Password;
                Domain = "myDomain";                                                //AppConfig.Domain;               
                Authenticate = "basic";                                             //AppConfig.Authenticate;
                EWS_URL = "https://MyExchangeWebServiceDomain/ews/Exchange.asmx";   //AppConfig.EWS_URL;
                RequestOperation = "ServiceRequestOperation";                       //AppConfig.RequestOperation;
                ResponseOperation = "ServiceResponseOperation";                      //AppConfig.ResponseOperation;

                NetworkCredential nc = null;
                if (Authenticate == "Windows")
                {
                    nc = System.Net.CredentialCache.DefaultNetworkCredentials;
                }
                else
                {
                    nc = new NetworkCredential(UserName, Password, Domain);
                }

                esb.Url = EWS_URL;
                esb.Credentials = nc;
            }
            catch (Exception x)
            {
                //Write Exeption Handiling Code Here
                string exceptonMessage = x.Message;
            }
        }