使用onceclick发布winform项目时遇到的一个异常

如果使用onceclick升级的系统,在用户电脑上升级后不能正常进入系统,提示连接不到设备上,很多与excel有关的dll文件有异常等错误,

则有可能是因为发布该系统的时候电脑上有打开的excel等文件,关掉重新发布即可。

 

网上相关的一篇帖子如下:

When we deployed the recent build of our ClickOnce product we get the following error:

APPLICATION SUMMARY
* Installable application.
* Trust url parameter is set.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of https://install.dev.sl.bta.cc/PA/Assette%20Presentations.application resulted in exception. Following failure messages were detected:
    + Exception occurred during store operation.
    + Value does not fall within the expected range.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
* Transaction at [9/17/2011 9:39:06 AM]
    - Staging of a component file (Office.dll) did not succeed.
    - Staging of a component (dev.Appender.dll.genman) did not succeed.
    - Staging of a component file (dev.Appender.dll) did not succeed.

There has been nothing changed except few references. Any idea why does this happen?

Thanks in advance.

 
 
 Answer   

The main reason of this is that the some files of the application is being opened or running during the the setup of the click once package. Make sure all the files of the application are closed

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值