Hi Shawn,
Are you trying to resolve in Application_Start? If so, are you aware of
http://groups.google.com/group/castle-project-users/browse_thread/thread/d44d96f4b548611e/1c33a54539f8abf7
 and https://www.ohloh.net/p/CastleWindsorLifestyles ?

--
Mauricio



On Wed, Jan 26, 2011 at 7:42 PM, Shawn Hinsey <[email protected]> wrote:

> Hey,
>
> I am getting this exception:
>
> "Looks like you forgot to register the http module
> Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule
> 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>"
>
> It's pretty straightforward, or so you'd think, but my web.config
> definitely has the module configured. If I change the namespace to
> something random, it breaks. What are the other potential causes of
> this exception? Are there settings in IIS that might conflict with the
> modules or something?
>
> I'm trying to integrate this with an MVC2 project, I've tried both
> webdev server and IIS in VS10 Ultimate on Win7 x64, in case any of
> that matters.
>
> Here's the relevant config.
>
>        <system.webServer>
>                <modules>
>                        <remove name="PerRequestLifestyle" />
>                        <add name="PerRequestLifestyle"
> type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule,
> Castle.Windsor" />
>                </modules>
>                <handlers>
>                        <remove name="MvcHttpHandler" />
>                        <add name="MvcHttpHandler"
> preCondition="integratedMode" verb="*"
> path="*.mvc" type="System.Web.Mvc.MvcHttpHandler" />
>                        <add name="UrlRoutingHandler"
> preCondition="integratedMode"
> verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler,
> System.Web" />
>                </handlers>
>        </system.webServer>
>
> which follows this
>
>        <system.web>
>                <httpModules>
>                        <add name="PerRequestLifestyle"
> type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule,
> Castle.Windsor" />
>                </httpModules>
>
> I've left out other things, but those are the only modules or handlers
> configured anywhere.
>
> Thanks,
> Shawn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to