我在 windows phone 中设计了一个示例应用程序。在该应用程序中,我在服务器上上传一个文件,上传后我只是从服务器下载该文件。我的问题是,在将文件上传到服务器时,我按下了屏幕锁定键。当我释放锁时,我得到了异常
System.Net.WebException: Exception of type 'System.Net.WebException' was thrown. ---> System.Net.WebException: Exception of type 'System.Net.WebException' was thrown.
at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.<EndGetResponse>b__d(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.<BeginOnUI>b__0(Object sendState)
--- End of inner exception stack trace ---
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.ClientHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Demo.Pages.NetworkSpeedTest.GetResponseCallback(IAsyncResult asynchronousResult)
如果我没有按屏幕锁定键,它工作正常。我该如何解决这个问题?有什么解决办法吗?