Skip to content
Browse files

- updated exception message when PWR lifestyle module not registered …

…for IIS7
  • Loading branch information...
1 parent 9ff08fe commit 8809925c614237450e11fc9efbe2b803dc6c069c @kkozmic kkozmic committed Aug 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Castle.Windsor/MicroKernel/Lifestyle/PerWebRequestLifestyleManager.cs
View
2 src/Castle.Windsor/MicroKernel/Lifestyle/PerWebRequestLifestyleManager.cs
@@ -46,7 +46,7 @@ public override object Resolve(CreationContext context)
{
var message =
string.Format(
- "Looks like you forgot to register the http module {0}{1}Add '<add name=\"PerRequestLifestyle\" type=\"Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor\" />' to the <httpModules> section on your web.config",
+ "Looks like you forgot to register the http module {0}{1}Add '<add name=\"PerRequestLifestyle\" type=\"Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor\" />' to the <httpModules> section on your web.config. If you're running IIS7 in Integrated Mode you will need to add it to <modules> section under <system.webServer>",
typeof(PerWebRequestLifestyleModule).FullName, Environment.NewLine);
throw new Exception(message);

0 comments on commit 8809925

Please sign in to comment.
Something went wrong with that request. Please try again.