使用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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章