I have WPF application, Which works fine on my PC. As this application is going to be used by clients i was trying to run that in few other computers.
But when i try to run it, it opens window for brief moment and closes itself.
Looks like .net is just refusing to start the application.
There is nothing on event log. Also my application has error handling at load level so application does not crash if there is an error. so i am pretty sure it’s not calling any application code.
What could be wrong in here?
Notes:
— Application do not have signed assembly as it’s in development only.
— I am trying to run application by just copying compiled files. No clickonce installation.
— Tried clickonce installation as well but same result
You need to include references, looks like your using references that the target machine doesn’t have.
To include references in your project using ClickOnce publishing, go to Publish page, and click on ‘Application Files’. There you can see a list of references that your application uses. You can change the publish status to Include, for all the references that the target machine does/might not have.