1

I have a WCF service that I recently added a Global.asax to.

When I run in Visual Studio it works fine, but I put it on my brand new Windows Server 2012 R2 server and Application_Start() is not called.

I am sure it is not called because I added:

throw new ApplicationException("The End is .... HERE!");

at the start of the method. It throws on start up as expected when run from visual studio, but when run from IIS it is not thrown.

I saw this question: Application_Start is not firing in IIS
But setting to "Classic" did not work...

How can I get IIS to call my Application_Start() on startup?

Community
  • 1
  • 1
Vaccano
  • 78,325
  • 149
  • 468
  • 850

1 Answers1

2

Deploy on server the global.asax file too.

Adrian Iftode
  • 15,465
  • 4
  • 48
  • 73