Static Class in asp.net lifecycle

There's a static class with a static constructor in one of my asp.net applications assemblies, when does it's constructor get called?

My problem is I'm finding it difficult to debug, I've only managed to set a breakpoint in VS once, it does not break at the breakpoint any more, this leads me to believe the static class/constructor is being called when aspnet first started and never again. I've tried killing aspnet_wp.exe and resetting IIS but to no avail.
[493 byte] By [ireland] at [2007-11-20 11:00:36]
# 1 Re: Static Class in asp.net lifecycle
A static class lies in the application scope, so it'll be alive as long as the application is. You're better off logging the constructor call to a file (or the event log) instead of using a breakpoint, because you can't always rely on it being hit even if the relevant code is called (especially not if you're killing processes.)

Oh, and the static constructor is generally called as soon as the class is needed. You can find information about this if you search on Google.
andreasblixt at 2007-11-9 11:36:14 >
# 2 Re: Static Class in asp.net lifecycle
Maybe it would be better for you to use the Singleton pattern. Then you will get a real constructor and a real class instance which you can debug in a easy way and the behavior is the same like a static class.
torrud at 2007-11-9 11:37:15 >