Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi all,

I've had a look around the web but haven't been able to find the right answer - and due to my limited C# assembly knowledge, I turn to you!

I have a WPF application that I have been running quite happily until today.
When I run the program in the debugger it will run perfectly, when I launch the .exe from the release folder I have no problem but when I open it from the debug it opens the icon in the taskbar but nothing will show.

I have tried cleaning/rebuild/rebuild all in every combination to no avail. Before today it worked fine on all Operating Systems of differing 32/64 bit, so I know I am not missing any assembly's or frameworks.

Has anyone ever had this problem? Does anybody know some common reasons I can try to get around this?


Thanks!!
Posted
Comments
ZurdoDev 29-Oct-12 10:10am    
If it works in release and works from Visual Studio, why are you running the version from the debug folder?
MitchG92_24 29-Oct-12 10:15am    
Sorry, I understand I can still use the project just as well as before, but it's just niggling away at me.
In the future when the application has been released I would like the opportunity of debugging the project in runtime for maintenance or bugs, which to the best of my knowledge can be done if ran from the debug folder.
ZurdoDev 29-Oct-12 10:20am    
Well, I have to assume it is something in the code then. Otherwise, I am not sure why it would behave that way.
satz_770 29-Oct-12 11:38am    
Change the mode to debug and then Build it. I think this is ur problem. as i dont have much info about ur problem i cant find any other solution...

1 solution

Make a copy and try some things.

First simply:
- Delete the Bin and Obj directory before opening the project and then rebuild.

If that didn't help, try:
- Delete the specific user settings for the project (.suo file in the same folder as the solution)

Still nothing? Try this:
- Start a complete new project/solution in visual studio and import all the projects into it.

Maybe there is more you can try but these are the things I could think of right now.

Good luck!
 
Share this answer
 
Comments
MitchG92_24 29-Oct-12 11:38am    
Hi E.F Nijboer, when i am at my dev machine I will try these. Even if it doesn't work for my particular problem i'm sure for others this may come in handy, I will mark as solution
fjdiewornncalwe 29-Oct-12 15:06pm    
+5. Sound Advice.

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