I have a WinForms.net 3.5 application. I deploy it using clickonce on an intranet with multiple client machines. I am publishing the application on the intranet web server ( http: // desbiz / CarwinClickOnce ).
In a developer environment (my computer), my application uses GAC assemblies such as Fk.Security.Common.dll v.1.0.0.0.
In the Publish โ Application Files tab of the WinForms csproj Properties application, I set the Include value for the Fk.Security.Common.dll link.
Now
some client machines have a link Fk.Security.Common.dll v.1.0.0.0 in the GAC
Other clients have NOT Fk.Security.Common.dll v.1.0.0.0 link in GAC
If the client installs the winform application using ClickOnce, the following problems occur:
1.) If the Fk.Security.Common.dll v.1.0.0.0 link is in the GAC, the Fk.Security.Common.dll v.1.0.0.0 link included in ClickOnce is not applied.
Problem: it is possible that the compilation code in the Fk.Security.Common.dll v.1.0.0.0 link included in ClickOnce is more updated than the code in the Fk.Security.Common.dll v.1.0.0.0 link in the GAC
Solution: Remove the Fk.Security.Common.dll v.1.0.0.0 link in the GAC and set the Gk Fk.Security.Common.dll v.1.0.0.0 link included in the ClickOnce publication ...
(how can I remove / install assemblies in the GAC using ClickoNce ????)
2.) If the Fk.Security.Common.dll NOT link is in the GAC, the Fk.Security.Common.dll v.1.0.0.0 link included in ClickOnce is used. No problems.
Note: the user on the client machine has administrator rights.
Any solution on these issues?
Thanks in advance.
source share