Tomas
Tomas

Reputation: 18117

Why Application_Start called two times from different threads?

I can't understand why Application_Start event is called two or three times when my ASP.NET app start? Application_End is not called between Application_Start calls. Also I have only one IIS pool instance.

Upvotes: 5

Views: 6198

Answers (2)

Raghavendra Dinavahi
Raghavendra Dinavahi

Reputation: 51

Please check the Worker Process Instances. You can find it in the Properties of your Application Pool. This happens if you have more then one instance of worker processes running under the same application pool.

Upvotes: 1

Adam Tuliper
Adam Tuliper

Reputation: 30152

Check out: Multiple Application_Start events firing Does this apply to you?

Also ensure you aren't writing any log entries to the bin folder as that will cause it as well.

Upvotes: 6

Related Questions