I’m getting the following exception when I try to install a ClickOnce application:
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\user\Downloads\appname.application resulted in exception. Following failure messages were detected:
+ Downloading file://192.168.2.9/appdir/appname.application did not succeed.
+ The network name cannot be found.
+ The network name cannot be found.
+ The network name cannot be found.
I haven’t been able to figure it out. I’ve tried looking around on the net and there don’t seem to be any resources on the issue. Does anybody know how to resolve this?
This turned out to be a problem with the installation URL in the publish settings. Rather than using a web path, I was using a share for the path. The actual location was set up in IIS, so of course the file could not be found at the share.
Changing the field “Installation Folder URL” from:
\\\server-name\pathto
http://server-name/pathresolved the problem. Silly mistake.