Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
After I publish a wpf application that uses fluent-hibernate it was successfully installed but when i run the app, nothing happens. I see my application process in process manager for about 2 seconds and then it ends automatically.
I first suspected at the urls in the app I use the following format
/MyApp;component/Images/Picture.png


What I have tried:

i head to the release folder in application files and start the executable file it starts normally with no problem! what could be the problem here ? Thanks  
Posted
Updated 8-Jan-17 4:08am
v3
Comments
[no name] 7-Jan-17 18:48pm    
"what could be the problem here", could be a lot of things. Catch whatever exception your application is throwing that is preventing it from running and fix it.
Member 12939189 7-Jan-17 19:12pm    
Thanks for your reply, you didn't read my question carefully.
The app doesn't throw any exceptions, In fact it runs normally but from the executable file in the release folder.
The problem is in the main executable file(the shortcut one)
[no name] 7-Jan-17 19:19pm    
Sorry, I DID read your posting very carefully. Your application is MOST LIKELY throwing an exception that you need to catch and examine. Beyond that, there is NOTHING at all we can tell you. We don't have access to your system to debug your code for you.
Member 12939189 7-Jan-17 19:22pm    
Thanks for your reply again, The application RUNS normally but from the executable file in the release folder again there are no exceptions thrown or something.
Dave Kreskowiak 7-Jan-17 19:42pm    
That really doesn't matter. We know absolutely NOTHING about your code or your application. What know nothing about the circumstances under which the problem occurs either.

We can only work with what you tell/show us and you've given us absolutely nothing.

The app works "on your machine" because you wrote the code on it and wrote the code to work on your machine. Chances are really good that the machine you deployed it to doesn't have all of the .DLL's it needs and/or data of some kind is not present where your code expects to find it.


1 solution

Your application is throwing an exception that you aren't handling. Period.

My bet is that it's a file system problem, but a guess is the best any of us can provide. Put a try/catch block around your main form's initialization code that displays an error message in the catch part, and I bet you find it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900