[SPRNET-1443] Support for ASP.NET MVC3 Created: 13/May/11  Updated: 01/Jun/11  Resolved: 01/Jun/11

Status: Resolved
Project: Spring.NET
Component/s: Spring-NET-WEBMVC
Affects Version/s: 1.3.1
Fix Version/s: 1.3.2

Type: New Feature Priority: Major
Reporter: Steve Bohlen Assignee: Steve Bohlen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relates to SPRNET-1446 WebContextHandler returns "Request is... Reopened
supersedes SPRNET-1430 ASP.NET MVC 3 throws an InvalidOperat... Closed


ASP.NET MVC3 has changed (significantly) the extension points for DI support from that in MVC2. New strategy is needed to integrate Spring.NET support into ASP.NET MVC3 leveraging these simpler container extension point(s).

Comment by Steve Bohlen [ 22/May/11 ]

Introduced support for MVC3, added tests, adjusted build scripts, added NuGet packaging, and provided MVC3 sample app in the /examples/ folder

Comment by Steve Bohlen [ 01/Jun/11 ]

Changes in the lifecycle of the the scope of the HttpContext.Request object under IIS7 in integrated pipeline mode result in "Request is not available in this context" exceptions when the Request is depended upon in Application_Start(). This has broken WebContextHandler in this use-case (from which MvcContextHandler is derived).

Comment by Steve Bohlen [ 01/Jun/11 ]

See http://mvolo.com/blogs/serverside/archive/2007/11/10/Integrated-mode-Request-is-not-available-in-this-context-in-Application_5F00_Start.aspx for info on the pattern employed to address the issue of attempting to access the HttpContext.Request object before its been properly created under IIS7 + integrated pipeline mode.

Generated at Sun Sep 27 17:25:26 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.