前段时间刚开始接触WPF Browser Application(XBAP)时,遇到了件怪事,在公司的多台机器上都出现了在IE中运行
任何XBAP程序都使IE(
PresentationHost)崩溃的现象,抛出
UnauthorizedAccessException异常。
根据实际的跟踪发现应该是ClickOnce在GetUserStore时失败,但此时登录的用户是管理员组Administrators用户,实在想不通是怎么回事。以下是崩溃时的堆栈情况:
System.Deployment.dll
!
System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
+
0x44
bytes
System.Deployment.dll
!
System.Deployment.Application.ComponentStore.ComponentStore(System.Deployment.Application.ComponentStoreType storeType, System.Deployment.Application.SubscriptionStore subStore)
+
0x2f
bytes
System.Deployment.dll
!
System.Deployment.Application.SubscriptionStore.SubscriptionStore(<
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/6810355c2f78c12e91b7997a8e8c583a.gif)