我有WinForms应用程序 3.5。我在带有多台客户端计算机的Intranet中使用clickonce进行了部署。我在Intranet Web服务器上发布应用程序( http:// desbiz / CarwinClickOnce )。
I have WinForms application 3.5. I deploy it using clickonce in intranet with several client machines. I publish application in intranet web server (desbiz/CarwinClickOnce).
在开发人员环境(我的PC)中,我的应用程序使用GAC程序集,例如Fk.Security.Common.dll v.1.0.0.0。
In developer environment (my PC), my application uses GAC assemblies, like Fk.Security.Common.dll v.1.0.0.0.
在发布-> WinForms应用程序csproj属性中的应用程序文件中,我为Fk.Security.Common.dll参考设置了包含。
In tab Publish -> Application files in Properties of WinForms application csproj, I set value Include for Fk.Security.Common.dll reference.
现在
某些客户端计算机在GAC中具有Fk.Security.Common.dll v.1.0.0.0参考
some client machines have Fk.Security.Common.dll v.1.0.0.0 reference in GAC
其他客户端在GAC中没有Fk.Security.Common.dll v.1.0.0.0参考
others client have NOT Fk.Security.Common.dll v.1.0.0.0 reference in GAC
如果客户端安装了winform应用程序使用ClickOnce会出现以下问题:
If the client installs the winform application using ClickOnce there are this issues:
1。)如果Fk.Security.Common.dll v.1.0.0.0引用在GAC中,则Fk.Security.Common。 ClickOnce中包含的dll v.1.0.0.0参考不适用。
1.) If Fk.Security.Common.dll v.1.0.0.0 reference is in GAC, the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce not apply.
问题:也许已编译ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0参考中的代码是比Fk.Security.Common.dll v.1.0.0.0中的代码更新更多的内容。
Problem: perhaps compilde code in Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce is more update than code in Fk.Security.Common.dll v.1.0.0.0 reference is in GAC
解决方案:卸载Fk.Security.Common.dll v.1.0 GAC中的.0.0参考,并在GAC中安装C中包含的Fk.Security.Common.dll v.1.0.0.0参考lickOnce发布...
Solution: uninstall Fk.Security.Common.dll v.1.0.0.0 reference in GAC, and install in GAC the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce Publish...
(如何使用ClickoNce在GAC中卸载/安装程序集??)
2。)如果GAC中没有Fk.Security.Common.dll参考,则适用于ClickOnce中包含的Fk.Security.Common.dll v.1.0.0.0。没问题。
2.) If Fk.Security.Common.dll reference NOT is in GAC, the Fk.Security.Common.dll v.1.0.0.0 reference included in ClickOnce apply. No problem.
注意:客户端计算机上的用户具有管理员权限。
note: the user in client machine has Administrator permissions.
有任何解决此问题的方法吗?
Any solution about this issues ??
预先感谢。
推荐答案ClickOnce 无法在GAC中安装或卸载文件。
ClickOnce cannot install or uninstall files in the GAC.
您是否编写了Fk.Security.Common.dll?如果是这样,请增加版本号(v.1.0.0.1)并重新编译。当您引用它时,请将特定版本属性设置为 True,并将版本属性设置为您的新版本号。这应该可以解决您的问题,而不必从每个人的GAC卸载旧程序集。
Did you write the Fk.Security.Common.dll? If so, increase the version number (v.1.0.0.1) and recompile it. When you reference it, set the "Specific Version" property to "True" and the "Version" property to your new version number. This should fix your problem without having to uninstall the old assembly from everyone's GAC.
更多推荐
ClickOnce和GAC
发布评论