ClickOnce无法启动该应用程序 [英] ClickOnce is unable to start the application

查看:231
本文介绍了ClickOnce无法启动该应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用ClickOnce技术的"Windows Forms"应用程序。我们使用Windows任务计划程序在Windows Server 2012 R2上启动.application文件。通常,ClickOnce服务(dvsvc.exe)启动,然后它在应用程序午餐。突然,
ClickOnce服务无法启动/午餐应用程序。它只是在任务管理器显示的后台继续运行。

I’m working on a "Windows Forms" application which utilize ClickOnce technology. we are using Windows Task Scheduler to start the .application file on Windows Server 2012 R2. normally, ClickOnce service (dvsvc.exe) start and in turn it lunch the app. Suddenly, ClickOnce service is unable to start/ lunch the application. It just keep running in the background as Task manager show.

我在应用程序日志下找到了以下信息消息,就在失败之前:

I found below information message under Application log, right before the failure:

Windows检测到您的注册表文件仍在被其他应用程序或服务使用。该文件现在将被卸载。保存注册表文件的应用程序或服务可能在以后无法正常运行。
无需用户操作。 

 详情 -

  8个用户注册表句柄从\ Reggistry \ User \中泄露S - ******************************

进程7876(\Device \HarddiskVolume2 \ Windows \ microsoft.NET \ Framework64 \ v4.0.30319 \ dfsvc.exe)已打开密钥\ REGISTRY \\\\ - **********************************

流程1544(\Device \HarddiskVolume2 \ Windows \ Microsoft \\\\\\\\\\\\\\\\\\\\ \\ dfsvc.exe)已打开键\ REGEGY \\\ S - ******************************

流程1544(\Device \HarddiskVolume2 \ Windows \ Micr osoft.NET\Framework64\v4.0.30319\dfsvc.exe)已打开键\ REGISTRY \USER \ S - ******************** ********** \软件\微软\ Windows NT \ CurrentVersion

进程1544(\Device \ HarddiskVolume2 \ Windows \ microsoft.NET \ Framework64 \ v4.0.30319 \ dfsvc.exe)已打开密钥\ REGISTRY \\\\\ S - ****************************** \软件\微软\ Windows \ CurrentVersion \互联网
设置

流程1544(\Device \HarddiskVolume2 \ Windows \ Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe)已打开键\ REGISTRY \USER \ S - ******************** ********** \Software\Microsoft \ Windows \ CurrentVersion \Internet
设置\5.0 \缓存

进程1544(\Device \HarddiskVolume2 \ Windows \Microsoft.NET \ Framework64 \ v4.0.30319 \ dfsvc.exe)已打开密钥\ REGEGY \\\ S - ****************************** \控制面板\国际

流程7876(\设备\ HarddiskVolume2 \ Windows \Microsoft®Teramework64\ v4.0.30319 \dfsvc.exe)已打开键\ REGISTRY \USER \ S - **************************** ** \Control Panel\International

流程1544(\设备\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ***************** \ Software \ Mycoftoft \ Windows \ CurrentVersion \Explorer

 

重新安装应用程序依次启用任务计划程序  ClickOnce从启动它,但它将在每天下午5点左右停止工作。每当我注意到上面的消息"应用程序日志"

重新启动服务器暂时解决问题但它来了请在几周内再次回来。

Restart the server temporarily solves the issue but it comes back again within few weeks.

请注意? 

Please advise? 




推荐答案

您好SWE84,

Hi SWE84,

对于迟到的回复感到抱歉。

Sorry for the late reply.

>> Windows检测到您的注册表文件仍在被其他应用程序或服务使用。该文件现在将被卸载。保存您的注册表文件的应用程序或服务可能在以后无法正常运行。

>>Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.

实际上,此错误与clickonce本身无关,会出现问题当配置文件没有完全卸载时,因为某些进程(可能是任何驱动程序,应用程序或服务)在系统关闭或用户注销时仍会保持挂钩到用户配置文件注册表
配置单元。 这主要是在漫游配置文件情况下出现的问题,但它也发生在独立系统上。  

结果将是配置文件已损坏,并且用户下次登录时会收到类似于"Windows无法登录您的消息,因为您的配置文件无法加载"。 ;
Microsoft开发了一个名为UPHClean的实用程序,安装后会在系统关闭或用户注销时自动运行。它检查可能仍然打开用户注册表配置单元并清理它们的任何服务,应用程序或驱动程序,从而
让用户配置文件干净地卸载。

In fact, this error is not associated with clickonce itself, the problems would occur when profiles were not fully unloaded because some process, which could be any driver, application, or service, would still maintain hooks into a users profile registry hive, when the system was shut down or a user logged off.  It was mainly a problem that was seen in roaming profile situations, but it also happened on standalone systems.  
The result would be that the profile would be corrupted and the next time that user logged on they would receive a message similar to "Windows cannot log you on because your profile cannot be loaded."
Microsoft developed a utility called UPHClean, which, when installed, runs automatically when a system is shut down or a user logs off. It checks for any service, application, or driver that may still have the users registry hive open and cleans them up, thereby letting a users profile unload cleanly.

如需更多信息,请参阅以下链接:

For more messages please refer to the following link:

错误1530,事件查看器中的用户配置文件服务

Windows检测到您的注册表文件仍在被其他应用程序或
服务使用

最诚挚的问候,

Stanly


这篇关于ClickOnce无法启动该应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆