Failed to start WPF application on another computer.

I have a WPF application that works fine on my PC. Since this application will be used by clients, I tried to run this on several other computers.

But when I try to start it, it opens the window for a short time and closes.

It seems that .net just refuses to run the application.

There is nothing in the event log. Also my application has error handling at load level, so the application does not crash if there is an error. therefore, I am sure that it does not call any application code.

What could be wrong here?

Notes:

- The application does not have a signed assembly, as in development. I am trying to run the application by simply copying the compiled files. No clickonce installation. - Tried installing clicks, but the same result

+4
source share
2 answers

You need to enable links, it looks like you are using links that are not on the target computer.

To include links in your project using ClickOnce publishing, go to the Publish page and click Application Files. There you can see a list of links that your application uses. You can change the publication status to β€œEnable” for all links that / or cannot have target computers.

+3
source

Is .Net 3.5 installed on all test computers? I believe this is the minimum version to support WPF.

+1
source

Source: https://habr.com/ru/post/1302497/


All Articles