Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 启动WPF应用程序时拒绝访问_.net_Wpf_Clickonce_.net 4.6.2 - Fatal编程技术网

.net 启动WPF应用程序时拒绝访问

.net 启动WPF应用程序时拒绝访问,.net,wpf,clickonce,.net-4.6.2,.net,Wpf,Clickonce,.net 4.6.2,我们在启动通过ClickOnce分发的WPF应用程序时遇到问题。有此问题的用户最近更新到.NET4.6.2,但应用程序本身是在4.5.2下构建和编译的。但是,正如您从日志中看到的,它安装正常,所以这不是问题所在。用户运行Windows 7。 下面是我们得到的错误: PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT) Common Language Runtime : 4.0.30319

我们在启动通过ClickOnce分发的WPF应用程序时遇到问题。有此问题的用户最近更新到.NET4.6.2,但应用程序本身是在4.5.2下构建和编译的。但是,正如您从日志中看到的,它安装正常,所以这不是问题所在。用户运行Windows 7。
下面是我们得到的错误:

 PLATFORM VERSION INFO
    Windows             : 6.1.7601.65536 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.6.1055.0 built by: NETFXREL2
    clr.dll             : 4.6.1076.0 built by: NETFXREL3STAGE
    dfdll.dll           : 4.6.1055.0 built by: NETFXREL2
    dfshim.dll          : 4.0.41209.0 (Main.041209-0000)

SOURCES
    Deployment url          : file:///C:/Users/lpiter/OneDrive%20%D0%B4%D0%BB%D1%8F%20%D0%B1%D0%B8%D0%B7%D0%BD%D0%B5%D1%81%D0%B0/appname.application
    Deployment Provider url     : http://xyz.servername.com/appname/appname/appname.application
                        Server      : Microsoft-IIS/8.0
    Application url         : http://appname.servername.com/appname/appname/client/appname.exe.manifest
                        Server      : Microsoft-IIS/8.0

IDENTITIES
    Deployment Identity     : appname.app, Version=1.6.5.888, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86
    Application Identity        : appname.exe, Version=1.6.5.888, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=x86, 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\lpiter\OneDrive xyz\appname.application resulted in exception. Following failure messages were detected:
        + Activation failed.
        + Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

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.
    * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
    * [09.08.2016 11:46:14] : Activation of C:\Users\lpiter\OneDrive xyz\appname.application has started.
    * [09.08.2016 11:46:14] : Processing of deployment manifest has successfully completed.
    * [09.08.2016 11:46:14] : Installation of the application has started.
    * [09.08.2016 11:46:14] : Processing of application manifest has successfully completed.
    * [09.08.2016 11:46:15] : Found compatible runtime version 4.0.30319.
    * [09.08.2016 11:46:15] : Request of trust and detection of platform is complete.
    * [09.08.2016 11:46:15] : Commit of the downloaded application has started.
    * [09.08.2016 11:46:15] : Installation of application has successfully completed.

ERROR DETAILS
    Following errors were detected during this operation.
    * [09.08.2016 11:46:15] System.Deployment.Application.DeploymentException (Activation)
        - Activation failed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
            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)
        --- Inner Exception ---
        System.UnauthorizedAccessException
        - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)

COMPONENT STORE TRANSACTION DETAILS
    * Transaction at [09.08.2016 11:46:15]
        + System.Deployment.Internal.Isolation.StoreOperationStageComponent
            - Status: Installed
            - HRESULT: 0x0
            - Manifest: RRDOMQQP.Q7Y.application
        + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        + System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
            - Status: Set
            - HRESULT: 0x0
        + System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
            - HRESULT: 0x0

你知道这是怎么回事吗?怎么解决?删除和安装应用程序没有帮助,回滚到4.5.2也没有帮助。

问题是,防病毒软件出于某种原因阻止了应用程序(实际上是两个独立的程序,卡巴斯基和Avast)。将我们的应用程序添加到白名单后,问题就消失了。

好吧,您遇到了拒绝访问错误,可能您没有以管理员身份启动它,或者您没有权限privileges@OrMiz尝试以管理员身份启动-相同的故事网络上的其他用户是否可以直接访问此文件?尝试通过以下命令启动exe文件:network@OrMiz我不关注-应用程序是从url下载并从本地文件夹安装的。您应该接受自己的答案,以便其他人看到问题已解决