开发过程中,由于网络不稳定,经常无法连接到oauth站点,当点击回退的时候会出现一个莫名的错误。
下面来重现这个bug
1.断开网络连接
2.打开 Web authentication broker sample (http://code.msdn.microsoft.com/windowsapps/)。
3.选择 1)Connect to Facebook Service
4.输入AppID, Site Url
5.点击Launch
出现如下界面

6.点击返回键后Output框内输出如下
System.IO.FileNotFoundException: 系统无法找到指定的资源。 (异常来自 HRESULT:0x800C0005)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SDKTemplateCS.ScenarioInput1.<Launch_Click>d__0.MoveNext() in f:\Temp\Windows 8 app samples\Web authentication broker sample\C#\ScenarioInput1.xaml.cs:line 103
这东西是不是一个Bug?
无网络连接至少该返回一个状态吧。或者正常用UserCancel?