WPF application slow on startup WPF application slow on startup wpf wpf

WPF application slow on startup


I found another solution to this problem in this documentation from Microsoft.

Adding the following configuration to the app.config file will also solve the problem:

<configuration>    <runtime>        <generatePublisherEvidence enabled="false"/>     </runtime></configuration>

This way, you don't need to change computer configurations. It's just configuration of the application.

UPDATE:
Seems that .NET 4.0 fixed this issue, as documented here on MSDN.


Is the system connected to a network, but cannot reach the internet because the proxy is not configured? If so, go to Internet Settings (i.e. Internet Explorer Properties), Advanced, and look in the tree view for Security and a checkbox like "check revoked certificates" or something (I'm using German Windows, so I don't have the English label at hands). Uncheck and test again.

If this fixed the problem, you have one signed assembly that is not from Microsoft for which the .NET Framework will check for revocations, and time out after 15 seconds. If you disable the checking or configure the internet connection properly, you won't have to wait.


Does it open up a file or interact in the network in some way? Because if not, I would suggest that whether or not you're logged into a domain or running as a local user is probably a red herring.

Are you building in debug or release mode? It's worth trying release mode if you've not already because running in debug does a load of extra error checking..