user284654
user284654

Reputation:

ClickOnce deployment error - access to the path is denied

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.

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:

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.

Upvotes: 3

Views: 12178

Answers (2)

RobinDotNet
RobinDotNet

Reputation: 11877

Do your users have read and execute rights to the folder or just read? Try giving them privileges for that. If that doesn't work, try setting one to have write access and see if that works for them.

It seems like we had to do that when I was messing around with the permission stuff. I couldn't just set it to read access.

Upvotes: 0

Allon Guralnek
Allon Guralnek

Reputation: 16121

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.

Upvotes: 5

Related Questions