I am facing an issue with an application deployed in an azure VM. A user can access the site after getting authenticated from oauth.live.com.
When a user logs in to the application that had been idle for an hour or more, an error occurs, the details of which are given below. The page is loaded correctly when refreshed and when accessed next time without an idle time of 1 hour.
Another thing I notice is that if I try to access oauth.live.com from the VM hosting the application before trying to load the application, the issue does not happen.
Can someone please help me on this?
Exception type: WebException
Exception message: The remote name could not be resolved: 'oauth.live.com'
at PwC.FCPA.External.Web.BReq.HttpGet(String url)
at PwC.FCPA.External.Web.TokenRestApi.getTokens(String clientID, String redirectURI, String clientSecret, String refreshToken, String authorizationCode)
at PwC.FCPA.External.Web.CallBack.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
HealthVault do not use oauth from live.com. Are you using any other services prior to login to HealthVault? I do not see calls from HealthVault in the call stack. More information is needed to figure out what is going on.