Hooking into AppInitialize with WCF service
- by Mark
Hi,
Im having issues with my WCF service. I need to do a windsor container injection pre application_start and noticed i can use the AppInitialise method. It works on visual studio debug but when I deploy to IIS the code does not get fired.. I initialized the class as follows
public static class Class1
{
public static void AppInitialize()
{
IWindsorContainer container;
container = new WindsorContainer("windsor.xml");
container.AddFacility();
container.Resolve();
}
}
Is there any special task i need to do to get this to work on IIS. Im using version 6.
Thanks!