ClickOnce部署错误-拒绝访问路径 [英] ClickOnce deployment error - access to the path is denied

查看:104
本文介绍了ClickOnce部署错误-拒绝访问路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WPF 应用程序,该应用程序正在使用ClickOnce部署部署到网络路径。将应用程序部署到网络位置后,我使用ClickOnce HTML页面启动安装过程。我可以成功下载并安装该应用程序。

I have a WPF application that I'm deploying to a network path using ClickOnce deployment. After the application is deployed to a network location, I use the ClickOnce HTML page to launch the installation process. I am successfully able to download and install the application.

但是,我的用户无法下载并安装该应用程序。当用户导航到ClickOnce HTML页面并单击以开始安装过程时,会收到以下错误消息:

However, my users are not able to download and install the application. When a user navigates to the ClickOnce HTML page and clicks to begin the installation process, the following error message is received:

ERROR SUMMARY
        Below is a summary of the errors, details of these errors are listed later in the log.
        * Activation of http://software.mycompany.com/myapp/myapp.application resulted in exception. Following failure messages were detected:
                    + Downloading file://dev/webs/software/myapp/myapp.application did not succeed.


        * [4/5/2010 1:56:59 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
                    - Downloading file://dev/Webs/software/myapp/myapp.application did not succeed.






所有迹象都表明这是一个安全问题。因此,我完成了以下操作:


All signs point to this being a security issue. So, I've done the following:


  • 确保每个人都可以读取对部署为项目的一部分

  • Ensured that "Everyone" had read access to the files that were being deployed as part of my project

确保每个人都对应用程序部署所在的网络位置具有读权限(// dev / webs / software / myapp)

Ensured that "Everyone" had read access to the network location where the application was deployed (//dev/webs/software/myapp)

确保每个人都具有对 ClickOnce HTML页面所在的IIS 路径

Ensured that "Everyone" had read access to the IIS path where the ClickOnce HTML page is located

在每种情况下,同样,在通过ClickOnce成功部署应用程序方面,我没有取得任何进展。

In each of these cases, I've made no progress in getting the application to successfully deploy via ClickOnce.

再次,奇怪的是,我能够成功完成下载和下载的过程。安装应用程序。不过,正是我的用户才需要下载和安装该应用程序。

Again, the odd thing is that I am able to successfully walk through the process of downloading and installing the application. It's my users, though, that need the ability to download and install the application.

我已经在网上广泛寻找答案,但是并没有很多。我想解决此问题而无需重新安装或操纵任何东西。

I've looked extensively on the web for answers, but there hasn't been much. I'd like to resolve the issue without "re-installing" or "rigging" anything.

推荐答案

我猜是您正在将文件发布到仅通过Web服务器公开给客户端的网络位置。在这种情况下,在项目属性的发布选项卡中,您的安装文件夹URL不正确(或未指定)。您可以通过查看错误消息来查看。用户正在访问http:// URL,但ClickOnce试图从file:// URL下载文件,客户端可能无法访问该文件。您应该将安装文件夹URL设置为 http://software.mycompany.com/myapp/ ,以便ClickOnce知道从何处下载应用程序。

I'm guessing that you are publishing your files to a network location that is only exposed to your clients via a web server. In that case, in the publish tab of your project properties, your Installation Folder URL is incorrect (or has not been specified). You can see that by looking at the error message. The user is accessing a http:// URL, but ClickOnce is trying to download a file from a file:// URL, which the client probably can't access. You should set the Installation Folder URL to http://software.mycompany.com/myapp/ so that ClickOnce knows from where to download the application.

这篇关于ClickOnce部署错误-拒绝访问路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆