Connecting outlook using exchange web service ASP.NET (MVC)-

first you will need to add web service to project then you will get instance of ExchangeServiceBinding()


Following code will help you : ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.RequestServerVersionValue = new RequestServerVersion(); esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1; esb.Credentials = new NetworkCredential("", "", ""); esb.Url = @"https:///ews/Exchange.asmx";