C# Windows 8-WriteTextAsync异常;无法计算表达式,因为本机帧位于调用堆栈的顶部。”;

C# Windows 8-WriteTextAsync异常;无法计算表达式,因为本机帧位于调用堆栈的顶部。”;,c#,windows,windows-8,microsoft-metro,unity3d,C#,Windows,Windows 8,Microsoft Metro,Unity3d,我想使用StorageFile来实现读写,如图所示 与 但“等待”行给出了例外 + $exception {Cannot evaluate expression because a native frame is on top of the call stack.} System.Exception {System.UnauthorizedAccessException} 如果这有什么不同的话,我正在使用Unity和Windows8应用商店 有人知道这里有什么问题吗 Cannot ev

我想使用StorageFile来实现读写,如图所示

但“等待”行给出了例外

+    $exception {Cannot evaluate expression because a native frame is on top of the call stack.} System.Exception {System.UnauthorizedAccessException}
如果这有什么不同的话,我正在使用Unity和Windows8应用商店

有人知道这里有什么问题吗

Cannot evaluate expression because a native frame is on top of the call stack
这只告诉我们线程正在执行,因此它无法计算表达式

真正的错误是
系统。UnauthorizedAccessException


因此,打开您的Package.appxmanifest,转到“功能”选项卡并检查文档库访问。

只需创建测试证书并在解决方案属性中的“签名”选项中选中“签名ClickOnce清单”,然后在解决方案资源管理器中右键单击解决方案名称

Cannot evaluate expression because a native frame is on top of the call stack