why my .net application horribly slow to start after the machine is rebooted?

Is that all enough to make my .net application faster or anything else is there I am missing ?

SharpUrBrain asked May 18, 2011 at 9:30 SharpUrBrain SharpUrBrain 3,230 5 5 gold badges 40 40 silver badges 56 56 bronze badges - Knock, knock. -Who's there? (long delay. ) -Dot Net. :-) Commented May 18, 2011 at 9:54

What kind of application is it, forms/WPF/Console. How do you know it is the framework that is slow to start? What is your code doing up to your measuring point?

Commented May 18, 2011 at 10:28

@adriamn: its a windows application used WPF, and forms also. First I thought it is because of my WPF codes, so I omitted most of unnecessary controls I used but still it is happening same, and I think its not due to my system configuration beacause I am trying to launch my application by waiting near about 20-30 minutes

Commented May 18, 2011 at 14:45

4 Answers 4

Another reason could be Authenticode signed assemblies and no internet connection. See Why are signed assemblies slow to load? and WPF application slow on startup for example.

1 1 1 silver badge answered May 18, 2011 at 20:37 Lars Truijens Lars Truijens 43.5k 6 6 gold badges 130 130 silver badges 145 145 bronze badges

You could use ProcMon from SysInternals to profile your app during startup. This will log all registry/file access with time stamp. It may point you in an area where there's a delay.

Also, when cold booting, does your machine have a lot of disc access? Is your virus scanner doing a full scan at boot?

answered May 18, 2011 at 9:38 John Warlow John Warlow 2,972 1 1 gold badge 34 34 silver badges 50 50 bronze badges

No, I am using this with my normal system without any start up applications and after the system get stable I am running my application and this problem I am facing

Commented May 18, 2011 at 9:40

If you are pulling up a large number of files from the hard drive, then your system hasn't loaded them yet. This could be the reason for the slow start.

Also, if you haven't given your system sufficient time to boot up, it could still be loading other applications at the same time.

answered May 18, 2011 at 9:35 Chuck Savage Chuck Savage 11.9k 6 6 gold badges 51 51 silver badges 69 69 bronze badges

As others have stated, your computer is probably still loading other applications during the first few minutes after bootup. Your hard disk (one of the slowest components) is busy trying to load those other apps and their respective data.

If you have a second disk on your computer, try installing your app on the second disk. If the second disk is usually idle during this time, I'm thinking that the app will start up much more quickly.

answered May 18, 2011 at 13:01 Giovanni Galbo Giovanni Galbo 13k 13 13 gold badges 61 61 silver badges 79 79 bronze badges

Linked

Related

Hot Network Questions

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.20.15615