这个问题在我们的环境中已经出现了三次。安装 ClickOnce 应用程序后,我希望它能够自动启动(正如我将其设置为安装完成后执行的那样),但它没有。
我尝试从快捷方式运行应用程序,它会显示“启动应用程序”对话框,但随后立即关闭并且应用程序未启动。它的行为就好像应用程序的另一个实例当前正在运行(我将其设置为一次仅运行一个实例)。
此问题是特定于配置文件的。使用不同的配置文件将其安装在同一台计算机上运行得很好,但无论出于何种原因,一旦遇到此问题,无论进行多少卸载、重新安装和重新启动计算机似乎都无法修复配置文件。
我们当前对此的解决方法是完全删除配置文件并“重新加载”它。我真的很想知道真正的问题是什么,因为我们已经遇到过三次了。
可能有用的其他一些信息:
-
此应用程序最初是使用 Windows Installer (MSI) 部署的。在安装较新的 ClickOnce 版本之前,我从“添加/删除程序”中卸载了该应用程序。
-
这些用户以前是本地管理员组的一部分(运行 MSI 版本时)。此后,他们的权限已降低为“标准用户”。
This issue has come up three times in our environment. After installing the ClickOnce application, I expected it to startup automatically (as I have it set to do after install completes), but it did not.
I try running the application from the shortcut, and it brings up the "Launching Application" dialog, but then immediately closes and the application is not started. It's acting as if another instance of the application is currently running (I have it set to only run one instance at a time).
This issue is profile-specific. Installing it on the same machine using a different profile runs just fine, but for whatever reason, no amount of uninstalling, reinstalling, and restarting the computer seems to fix a profile once it runs into this problem.
Our current fix for this is to completely delete the profile and "reload" it. I'd really like to know what the actually problem is though, being that we've run into it three times now.
Some other information that may be of use:
-
This application was originally deployed using Windows Installer (MSI). I uninstalled the application from the Add/Remove Programs prior to installing the newer ClickOnce version.
-
These users were previously part of local administrators group (while running the MSI version). Their privileges have since been lowered to "standard user".
发布评论
评论(3)
您在启动时是否有任何日志记录可以准确显示应用程序正在执行的操作,以便您可以知道它在哪里崩溃?
用户没有安装 Kensington 鼠标软件,是吗?那里存在一个已知的冲突,其症状与您报告的完全一样 - 用户单击快捷方式来启动应用程序,它会更新,然后不执行任何操作。
Do you have any logging at startup that shows exactly what the application is doing, so you can tell where it's crashing?
The user doesn't have Kensington mouse software installed, do they? There is a known conflict there, the symptoms of which are exactly as you report -- the user clicks the shortcut to start the application, it updates, and then does nothing.
我能够通过为应用程序创建新证书来修复这些安装。看来此问题与证书即将到期有关。
I was able to fix those installations by creating a new certificate for the app. It appears this issue had to do with the certificate reaching its expiration date.
不要删除配置文件,请尝试以下操作:
以管理员身份登录电脑
Instead of deleting the profile try this:
Log onto the PC as an admin