Derek Glissman
Derek Glissman

Reputation: 67

ClickOnce WPF App not Running on other Machines

I've published a C# WPF app using ClickOnce. The app installs and runs without issue on the machine that I used to create the app. It also installs on other machines without any errors or log messages.

When I run the app by double-clicking the desktop shortcut or using the Start menu shortcut, ClickOnce will run (which I can see in Task Manager) and it will check for updates; but then nothing happens. The app window doesn't appear, the app doesn't show as running in Task Manager, and there are no error messages or logs.

I've tried it on 2 other computers with the same results on each. I'm installing the app from the deployed folder, accessed over our network. I've confirmed that the other computers have .NET 4.6.1 (the version targeted by the app) and I've put the 4.6.1 offline installer in the prerequisites folder, just for good measure. I've tried re-publishing, uninstalling, and reinstalling several times; I get the same results each time.

I've read through Microsoft's documentation and looked at multiple tutorials and can't find anything that I've missed. I'm hoping someone here can help or at least point me toward the best way to try and troubleshoot this.

- EDIT -

In response to the comment below by Lews Therin, I'm including the Event Viewer logs here. There are 2 error messages and an information log at the time stamp that I attempted to run the app again, so something is definitely going wrong with it.

I'll admit that I'm not very familiar with these types of logs; any assistance or direction on figuring out how to parse this information would be much appreciated.

Log #1 Windows Error Reporting: - System - Provider [ Name] Windows Error Reporting - EventID 1001 [ Qualifiers] 0 Level 4 Task 0 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2018-07-09T20:32:53.678375700Z EventRecordID 9118 Channel Application Computer NEWRE Security

Log #2 Application Error: - System - Provider [ Name] Application Error - EventID 1000 [ Qualifiers] 0 Level 2 Task 100 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2018-07-09T20:32:49.767127600Z EventRecordID 9117 Channel Application Computer NEWRE Security

Log #3 .NET Runtime: - System - Provider [ Name] .NET Runtime - EventID 1026 [ Qualifiers] 0 Level 2 Task 0 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2018-07-09T20:32:49.265695700Z EventRecordID 9116 Channel Application Computer NEWRE Security

Upvotes: 1

Views: 926

Answers (2)

Derek Glissman
Derek Glissman

Reputation: 67

After some research and a lot of help from folks in the comments, I've figured out what the issue was. The original problem happened because Interop.QBFC13 (the reference for the QuickBooks SDK library) can't be copied locally through Visual Studio. So, unless you manual add it to the references for your project (see the first answer in this question), the machine that your app will be run on will need to have the same version of the SDK installed on it. The download for QBFC13 (currently the most recent version) can be found here.

The later issues happened because I needed to undo an earlier fix (removing the StartupUri) that I had attempted and messed up.

Upvotes: 0

Suresh
Suresh

Reputation: 15

I did face this problem in my company also. In my company before I install any application on user computer they (IT Support) have to approve the application to install on their computer then only it will allow to run/open that application. You can also check the same with your IT Support is there any policy to install new application.

Upvotes: 0

Related Questions