Outlook 2010 插件访问被拒绝

发布于 2024-12-07 09:30:11 字数 1487 浏览 0 评论 0原文

我正在尝试创建 Outlook 2010 插件。我刚刚创建了标准项目,当尝试运行它时,出现以下错误...

访问被拒绝。 (HRESULT 异常:0x80070005 (E_ACCESSDENIED))

***** 异常文本******* System.UnauthorizedAccessException:访问被拒绝。 (HRESULT 异常:0x80070005 (E_ACCESSDENIED)) 在 System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid) 在 System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore() 在 System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType,SubscriptionStore subStore) 在 System.Deployment.Application.SubscriptionStore..ctor(字符串部署路径,字符串临时路径,ComponentStoreType storeType) 在 System.Deployment.Application.SubscriptionStore.get_CurrentUser() 在System.Deployment.Application.DeploymentManager..ctor(Uri部署源,布尔值isUpdate,布尔值isConfirmed,DownloadOptions downloadOptions,AsyncOperation可选AsyncOp) 在System.Deployment.Application.InPlaceHostingManager..ctor(Uri部署清单,布尔launchInHostProcess) 在 Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri) 在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy() 在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan 超时) 在 Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

有人对此有任何想法吗?

Im trying to create an outlook 2010 addin. I just created the standard project, when trying to run it i get the following error...

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

***** Exception Text *******
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)
at System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()
at System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)
at System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)
at System.Deployment.Application.SubscriptionStore.get_CurrentUser()
at System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp)
at System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess)
at Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy()
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

Anyone have an idea about this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海螺姑娘 2024-12-14 09:30:11

您的“本地设置”文件夹中可能存在一些问题。尝试删除它,重新启动,它会重新创建。这就是我在处理 QlickOnce 时解决一些访问被拒绝错误的方法。

本地设置文件夹默认是隐藏的。在 Windows 7(和 Vista)上可在此处找到:

C:\Users\{user name}\AppData\Local

在 Windows XP 上可在此处找到:

C:\Documents and Settings\{user name}\AppData\Local

You might have some problem in your Local Settings folder. Try deleting it, reboot and it will be recreated. That's how I've solved a few access denied errors when dealing with QlickOnce.

The Local Settings-folder is hidden default. It's found here on Windows 7 (and Vista):

C:\Users\{user name}\AppData\Local

And here on Windows XP:

C:\Documents and Settings\{user name}\AppData\Local
不…忘初心 2024-12-14 09:30:11

在安装了 word addin 的设置后,我在我队友的一台机器上遇到了同样的问题。我使用 Installshield 的限量版创建了安装程序。问题出在注册表项中。清单条目中的路径在开始时有“file:///”,这在某种程度上导致了错误。

首先,我手动更改了清单注册表中的路径(位于 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\YourAddin\Manifest),从“file:///C:/Program Files (x86)/..... /My.vsto”到“C:/Program Files (x86)/...../My.vsto”并且它起作用了。然后我也在我的安装项目中修复了这个问题。

希望这对某人有帮助。

I got the same issue on one of my team mate's machine after installing setup of word addin. I created installer using Installshield's limited edition. The issue was in registry entry. Path in Manifest entry was having "file:///" at start which was somehow causing error.

First I manually changed path in manifest registry (at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\YourAddin\Manifest) from "file:///C:/Program Files (x86)/...../My.vsto" to "C:/Program Files (x86)/...../My.vsto" and it worked. Then I fixed that in my setup project too.

Hope this helps somene.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文