[英]Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) deleting active directory account
[英]Moving to forms in Windows Phone 8.1 throws “Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))”
我创建了Windows Phone 8.1应用程序(C#),该应用程序基本上将我导航到另一种显示地图视图的窗体。 有问题的代码是按钮单击事件:
public void ToOriginal_Click(object sender, RoutedEventArgs e)
{
this.Frame.Navigate(typeof(Pages.MapPage));
//Pages is a folder where all pages are put in. MapPage is what I open
}
也使用到位:
using Windows.UI.Xaml.Navigation;
抛出异常:
Additional information: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
我在Package.appxmanifest中添加了定位功能。 它曾经在某个时候起作用,但我是否做了更改,现在导致了这一点?
我四处搜寻,但没有找到类似的东西。 相同的代码,但原因不同。 似乎这是拒绝某些内容时抛出的一般异常代码。 但是如何解决这个导航问题呢?
如果有人可以将我链接到答案或有关于此的信息,请告诉我。
即使我有这个问题
更换
this.Frame.Navigate(typeof(Pages.MapPage));
用
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
Frame.Navigate(typeof(Pages.MapPage)));
那应该解决问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.