ClickOnce完成安装需要哪个权限?

时间:2016-05-18 16:21:58

标签: windows c#-4.0 outlook clickonce office-interop

当我在Windows 7计算机上发布和安装我的C#应用​​程序时,我已经安装并运行良好。该应用使用Microsoft.Office.Interop.Outlook

修复错误后,我增加了版本号并再次发布。但这次,应用程序无法安装。

日志文件似乎表明缺少某些权限。但我确实右键单击setup.exe文件并以管理员身份运行。

缺少哪些特权?我该如何解决这个问题?

PLATFORM VERSION INFO
  Windows       : 6.1.7601.65536 (Win32NT)
  Common Language Runtime   : 4.0.30319.34209
  System.Deployment.dll     : 4.0.30319.34209 built by: FX452RTMGDR
  clr.dll       : 4.0.30319.34209 built by: FX452RTMGDR
  dfdll.dll       : 4.0.30319.34209 built by: FX452RTMGDR
  dfshim.dll      : 4.0.41209.0 (Main.041209-0000)

SOURCES
  Deployment url      : file:///C:/Users/Teamroom314/Downloads/NextMeeting/NextMeeting.application
  Application url     : file:///C:/Users/Teamroom314/Downloads/NextMeeting/Application%20Files/NextMeeting_1_2_22_0/NextMeeting.exe.manifest

IDENTITIES
  Deployment Identity   : NextMeeting.application, Version=1.2.22.0, Culture=en, PublicKeyToken=0000000000000000, processorArchitecture=msil
  Application Identity    : NextMeeting.exe, Version=1.2.22.0, Culture=en, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
  * Installable application.

ERROR SUMMARY
  Below is a summary of the errors, details of these errors are listed later in the log.
  * Activation of C:\Users\Teamroom314\Downloads\NextMeeting\NextMeeting.application resulted in exception. Following failure messages were detected:
    + A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
  No transaction error was detected.

WARNINGS
  * The manifest for this application does not have a signature. Signature validation will be ignored.
  * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
  * [5/18/2016 11:52:42 AM] : Activation of C:\Users\Teamroom314\Downloads\NextMeeting\NextMeeting.application has started.
  * [5/18/2016 11:52:42 AM] : Processing of deployment manifest has successfully completed.
  * [5/18/2016 11:52:42 AM] : Installation of the application has started.
  * [5/18/2016 11:52:42 AM] : Processing of application manifest has successfully completed.
  * [5/18/2016 11:52:43 AM] : Found compatible runtime version 4.0.30319.
  * [5/18/2016 11:52:43 AM] : Detecting dependent assembly Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35, processorArchitecture=msil using Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=msil.
  * [5/18/2016 11:52:43 AM] : Request of trust and detection of platform is complete.
  * [5/18/2016 11:52:43 AM] : Downloading of subscription dependencies is complete.
  * [5/18/2016 11:52:43 AM] : Commit of the downloaded application has started.

ERROR DETAILS
  Following errors were detected during this operation.
  * [5/18/2016 11:52:50 AM] System.Runtime.InteropServices.COMException
    - A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. (Exception from HRESULT: 0x80070511)
    - Source: System.Deployment
    - Stack trace:
      at System.Deployment.Internal.Isolation.IStore.Transact(IntPtr cOperation, StoreTransactionOperation[] rgOperations, UInt32[] rgDispositions, Int32[] rgResults)
      at System.Deployment.Application.ComponentStore.SubmitStoreTransaction(StoreTransactionContext storeTxn, SubscriptionState subState)
      at System.Deployment.Application.ComponentStore.CommitApplication(SubscriptionState subState, CommitApplicationParams commitParams)
      at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
      at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
      at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
      at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
  * Transaction at [5/18/2016 11:52:50 AM]
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: G6BCL4NT.VZY.application
    + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
      - Status: Set
      - HRESULT: 0x0
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: NextMeeting.exe.manifest
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: chromedriver.exe
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: NextMeeting.exe.config
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: webex.ico
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: CiscoWebExv1.0.1.crx
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: WebDriver.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: WebDriver.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: Microsoft.Exchange.WebServices.Auth.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: Microsoft.Exchange.WebServices.Auth.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: Microsoft.IdentityModel.Extensions.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: Microsoft.IdentityModel.Extensions.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: ExchangeCal.exe.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: ExchangeCal.exe
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: RestSharp.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: RestSharp.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: WebExCmd.exe.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: WebExCmd.exe
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: WebDriver.Support.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: WebDriver.Support.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: CredentialManagement.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: CredentialManagement.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: NextMeeting.exe.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: NextMeeting.exe
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: Microsoft.Exchange.WebServices.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: Microsoft.Exchange.WebServices.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: Authentication.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: Authentication.dll
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: SecVault.exe.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: SecVault.exe
    + System.Deployment.Internal.Isolation.StoreOperationStageComponent
      - Status: Installed
      - HRESULT: 0x0
      - Manifest: Library314.dll.genman
    + System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
      - Status: Installed
      - HRESULT: 0x0
      - File: Library314.dll
    + System.Deployment.Internal.Isolation.StoreOperationInstallDeployment
      - Status: Installed
      - HRESULT: 0x0
      - AppId: file:///C:/Users/Teamroom314/Downloads/NextMeeting/NextMeeting.application#NextMeeting.application, Version=1.2.22.0, Culture=en, PublicKeyToken=0000000000000000, processorArchitecture=msil
    + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
      - Status: Set
      - HRESULT: 0x0
    + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
      - HRESULT: 0x800704fb

1 个答案:

答案 0 :(得分:0)

我已经能够通过扫描Windows注册表中的应用程序名称来解决此问题。

删除包含我的应用程序名称的所有条目后,我还必须删除以下条目:

HKEY_CURRENT_USER\Software\Classes\SOFTWARE\Microsoft\Windows\CurrentVersion\Deployment\SideBySide

幸运的是,我的应用程序是唯一一台在此计算机上使用ClickOnce的应用程序。否则,我必须在SideBySide下找出我的哪些条目。