简体   繁体   中英

Why doesn't my WPF application show up?

I have a WPF application developed and been testing already for a few months. When it's installed on the client's computer the application starts and no window is visible. The task manager shows the application is running.

The application is writing all activities in few log files and it looks like it is doing something but no visible screen.

What can be a possible cause of the problem ?

Why it is invisible on that specific machine ? The machine is Windows 7 64x bit The installed frameworks are v1.0 1.1 v2.0 v3.0 v3.5 v4.030319

The strange thing is the application was working before.

You should check Windows Event log (Type eventvwr in run dialog or go to viewer by Computer Management dialog of Windows) to get info about the problem. The reason is most likely your application has an exception before your main window is opened. So you see that process is running in task manager but windows did not show up.

The reason in event log could be anything. May be your app requires a file in a specified path but not found. I meany anything that causes an except,on could be your problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM