[GH-ISSUE #168] after Outlook start there is a ErrorMsg displayed #1064

Closed
opened 2026-03-14 00:06:52 +03:00 by kerem · 7 comments
Owner

Originally created by @haderlump22 on GitHub (Sep 22, 2016).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/168

Followig Message is diplayed and the AddIn is deaktivated.

`Name:

Von: file:///C:/Program Files/Gerhard Zehetbauer/CalDavSynchronizer/CalDavSynchronizer.vsto

************** Ausnahmetext **************

System.UnauthorizedAccessException: Zugriff verweigert (Ausnahme von HRESULT: 0x80070005 (E_ACCESSDENIED))

bei System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid)

bei System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore()

bei System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore)

bei System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType)

bei System.Deployment.Application.SubscriptionStore.get_CurrentUser()

bei System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp)

bei System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess)

bei Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri)

bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy()

bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout)

bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()`

Is a UnauthorizedAccessException, ok.
But the Details, where the AddIn can't read some Settings,
could be better. So in can't find and correct the Settings.

Originally created by @haderlump22 on GitHub (Sep 22, 2016). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/168 Followig Message is diplayed and the AddIn is deaktivated. `Name: Von: file:///C:/Program Files/Gerhard Zehetbauer/CalDavSynchronizer/CalDavSynchronizer.vsto *************\* Ausnahmetext ************** System.UnauthorizedAccessException: Zugriff verweigert (Ausnahme von HRESULT: 0x80070005 (E_ACCESSDENIED)) bei System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(UInt32 Flags, IntPtr hToken, Guid& riid) bei System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore() bei System.Deployment.Application.ComponentStore..ctor(ComponentStoreType storeType, SubscriptionStore subStore) bei System.Deployment.Application.SubscriptionStore..ctor(String deployPath, String tempPath, ComponentStoreType storeType) bei System.Deployment.Application.SubscriptionStore.get_CurrentUser() bei System.Deployment.Application.DeploymentManager..ctor(Uri deploymentSource, Boolean isUpdate, Boolean isConfirmed, DownloadOptions downloadOptions, AsyncOperation optionalAsyncOp) bei System.Deployment.Application.InPlaceHostingManager..ctor(Uri deploymentManifest, Boolean launchInHostProcess) bei Microsoft.VisualStudio.Tools.Applications.Deployment.IPHMProxy..ctor(Uri uri) bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.get_Proxy() bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.GetManifests(TimeSpan timeout) bei Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()` Is a UnauthorizedAccessException, ok. But the Details, where the AddIn can't read some Settings, could be better. So in can't find and correct the Settings.
kerem closed this issue 2026-03-14 00:06:57 +03:00
Author
Owner

@aluxnimm commented on GitHub (Sep 22, 2016):

Did you install the addin as current user? Our installer doesn't work for All users deployment at the moment.

<!-- gh-comment-id:248864115 --> @aluxnimm commented on GitHub (Sep 22, 2016): Did you install the addin as current user? Our installer doesn't work for All users deployment at the moment.
Author
Owner

@haderlump22 commented on GitHub (Sep 23, 2016):

no, i installed it as "Admin" but for "All Users".

Ok i try the installation as current user.

<!-- gh-comment-id:249151931 --> @haderlump22 commented on GitHub (Sep 23, 2016): no, i installed it as "Admin" but for "All Users". Ok i try the installation as current user.
Author
Owner

@haderlump22 commented on GitHub (Sep 27, 2016):

is the same Problem. What will the addin read, that can't access? Its not clear describe in the errormsg. When i know what regpath or what else it would read, i can look the accessconfig and manipulate it so, that the addin can read it.

<!-- gh-comment-id:249779092 --> @haderlump22 commented on GitHub (Sep 27, 2016): is the same Problem. What will the addin read, that can't access? Its not clear describe in the errormsg. When i know what regpath or what else it would read, i can look the accessconfig and manipulate it so, that the addin can read it.
Author
Owner

@aluxnimm commented on GitHub (Sep 27, 2016):

Did you install as current user but with admin rights?

<!-- gh-comment-id:249779817 --> @aluxnimm commented on GitHub (Sep 27, 2016): Did you install as current user but with admin rights?
Author
Owner

@haderlump22 commented on GitHub (Sep 27, 2016):

In the first Step no. But in try for the second time with Admin rights for the user....
Same Msg. I look under c:\user\name\appdata\Local. There aren't the Folder witch is created by the other users on the other Clients.
I create the Folder by Hand, but with the same Error.

<!-- gh-comment-id:249808765 --> @haderlump22 commented on GitHub (Sep 27, 2016): In the first Step no. But in try for the second time with Admin rights for the user.... Same Msg. I look under c:\user\name\appdata\Local. There aren't the Folder witch is created by the other users on the other Clients. I create the Folder by Hand, but with the same Error.
Author
Owner
<!-- gh-comment-id:250928083 --> @aluxnimm commented on GitHub (Oct 1, 2016): Maybe this discussion can help: https://social.msdn.microsoft.com/Forums/windows/en-US/ef690458-22bc-4d72-a36c-773c1cc6fa15/clickonce-application-cannot-be-started-help?forum=winformssetup
Author
Owner

@haderlump22 commented on GitHub (Oct 6, 2016):

Yeahhh!!! It Works....

  • log off the User
  • log on as admin
  • delete the file %userprofile%\AppData\Local\Microsoft\Windows\UsrClass.dat from the User
  • log on as User

AddIn is now loading :-)

Thanks for the link to diskussion!

<!-- gh-comment-id:251966401 --> @haderlump22 commented on GitHub (Oct 6, 2016): Yeahhh!!! It Works.... - log off the User - log on as admin - delete the file %userprofile%\AppData\Local\Microsoft\Windows\UsrClass.dat from the User - log on as User AddIn is now loading :-) Thanks for the link to diskussion!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#1064
No description provided.