WPF application slow on startup

后端 未结 5 1948
说谎
说谎 2020-12-24 02:41

My WPF application currently only shows a screen with some controls, it doesn\'t connect to DB or has any other functionality. It\'s a simple UI screen.

When I was t

5条回答
  •  被撕碎了的回忆
    2020-12-24 03:32

    I had still this Problem (.NET 4.5). I my case the problem was, that the computer was not connected to the internet, but there were some other device (cameras etc.) which were connected via GigE. The startup of every .NET Application was delayed for about 20 seconds.

    The solution was quite easy: Just connected the computer once to the internet, started any .NET application (first startup took about 7 seconds) and after that, every startup was quite fast, even if the computer was no longer connected to the internet. In addition I had to disable the protocol TCP/IP V6 (caused 3-5 seconds delay).

    Another possible solution is to select Properties for the "internet Protocol Version 4 (TCP/IPv4), then select Advanced, select the tab "WINS" and set "Disable NetBIOS over TCP/IP".

提交回复
热议问题