Integrated vs Classic Pipeline modes

124 views
Skip to first unread message

Ricardo Cavalcanti

unread,
Oct 10, 2008, 7:16:05 PM10/10/08
to aut...@googlegroups.com
Hi,

Is there any known issue with using autofac web integration with integrated pipeline application pool?

My dependencies are only injected when the app pool is set to use classic pipeline mode.

Supposing I am not able to configure IIS on my host provider, how can I configure my application?

tnahks in advance,


--
Ricardo Cavalcanti

Nicholas Blumhardt

unread,
Oct 11, 2008, 10:59:33 AM10/11/08
to aut...@googlegroups.com
Hi Ricardo,

I don't think I've tested the WebForms integration in that mode - it might be something to investigate further and raise as an issue if you have the time.

Thanks for the heads-up.

Nick

Ricardo Cavalcanti

unread,
Oct 13, 2008, 9:38:24 AM10/13/08
to aut...@googlegroups.com
I've raised issue 85 ( http://code.google.com/p/autofac/issues/detail?id=85 )

And...

I have found it minutes later!

The problem is: if you are working with IIS 7, there is now two differente sections on the Web.config:
<httpModules> and <modules>.
In order to make  autofac work in both integrated and classic pipeline modes, you must add the autofac module entries in both sections, just as the ScriptModule from Asp.NET ajax.

more info at

http://blogs.msdn.com/tmarq/archive/2007/08/30/iis-7-0-asp-net-pipelines-modules-handlers-and-preconditions.aspx

Maybe the issue can change to update the wiki at AspNetIntegration.

thanks anyway!

regards,

Ricardo
--
Ricardo de Oliveira Cavalcanti
M.Sc. Candidate in Computer Science @ Federal University of Pernambuco
Software Reuse Practicioner - www.rise.com.br
Reply all
Reply to author
Forward
0 new messages