I am using windsor DI framework in one of my MVC project. The project works fine when I tried to run from Visual Studio 2008.
But when i tried to run the project creating an application in IIS7 then I recieved the following error message:
Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule Add '<add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.MicroKernel" />' to the section on your web.config
But this module already exists in the httpmodule section of web.config file.
Does anyone know what I have to do to eliminate this problem.
I had the same error, but it caused by another reason:
I tried to resolve IService
at Application_Start
for custom route class processing, but type for IService
was registered with PerWebRequestLifestyle
. Routing subsystem stays at higher level that web request, and objects not exist at route processing time.