I have a problem with ClickOnce publishing of a WPF application.

* If the application is built (debug or release), it is running correctly.
* Application published by ClickOnce crashes.

I tried to change Target Platform. Sometimes this change helps to solve problems, but not every time (1 of 20 cases).

I have Visual Studio 2008 and the project has been upgraded from Visual Studio 2005.

Any ideas?

Thank you in advance!