3
votes

We have a server PC and other client PCs working connected to server using LAN. We have a application for our internal use which is developed using VB.Net. I used steps in http://www.codeproject.com/Articles/17003/ClickOnce-Quick-steps-to-Deploy-Install-and-Update to deploy clickone statergy for updating our application.After publishing while installing application,this error is coming

enter image description here

I searched i details and found this error

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of D:\Desktop\publish\Global.application resulted in exception. Following failure messages were detected:
    + Downloading file:///D:/Desktop/publish/Application Files/Global_1_0_0_0/Global.XmlSerializers.dll.deploy did not succeed.
    + Could not find file 'D:\Desktop\publish\Application Files\Global_1_0_0_0\Global.XmlSerializers.dll.deploy'.
    + Could not find file 'D:\Desktop\publish\Application Files\Global_1_0_0_0\Global.XmlSerializers.dll.deploy'.
    + Could not find file 'D:\Desktop\publish\Application Files\Global_1_0_0_0\Global.XmlSerializers.dll.deploy'.

I have checked Application files in publish options and Global.XmlSerializers.dll is included. Anyone know why this is happening?

Is there any way to copy some extra files to installation folder(C:\Users\name\AppData\Local\Apps..) when installing or updating clickone application? Because we use some outside support files for our application. Is it possible?

Is there any way to pass argument to clickone application short cut,like passing argument to .exe shortcut("\Global.exe" ?/?customer?/?)?

EDIT: This is how I published

enter image description here

I checked by giving network path for publishing folder location.But same error coming.

Here is application files included

As you can see Global.XmlSerializers.dll is included

enter image description here

3

3 Answers

0
votes

It is looking for a file on the D: drive. It is unlikely that your users all have their D drive mapped to the same location. When you publish you should use the full path rather than mapped drive letters.

//Servername/shareddirectory/appdirectory

Does the install work for you?

0
votes

Well, there no magic involved in ClickOnce: you can just look into the deployment folder - is the required file there or not?

If not, you need to change the settings in the Publish options for the required file. This message - in my experience - is always a sign that one of the required assemblies has not been published.


In addition it seems that you published to a mapped network drive instead of publishing to an UNC path. You need to publish to a path following the \\server\name\ scheme.

0
votes

When I have used the wizard and deployed to a network share, in the Publish Wizard:

Specify the location to publish this application:

UDP Path

Click Next

How will users install the application?

From a UNC path of file share

Specify the UNC path:

The same UDP Path (copy pasted from before)