Recently our .Net team faced a issue when deploying Spring.net application on IIS 7.
There is below two steps that one need to perform in order to run Spring successfully on IIS 7. They are mentioned below:
- There is few setting that one need to make in web.config file to make it work with IIS 7
<system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> </modules> <handlers> <add name="SpringPageHandler" verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/> <add name="SpringContextMonitor" verb="*" path="ContextMonitor.ashx" type="Spring.Web.Support.ContextMonitor, Spring.Web"/> </handlers> </system.webServer>
- One need to make changes in IIS Application Pool setting as well. As mention below:
- Right click on Default-Website in IIS and select Advance setting as shown below:
- Select Application Pooling as shown in below picture and change its type to classic: