I created one console application in Visual Studio (C#) for fetching emails from ms365office email account and insert to the database.
In Azure VM i just placed the exe of this application and scheduled the task in windows scheduler. its working perfectly till Yesterday.
But now showing the error below
"Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)"
the error line is
GetUserSettingsResponse grResp = ads.GetUserSettings(MSExEmailID, usSetting);
Please help me on this. Thanks is advance.!