I've seen couple of questions here such as State Service when using system.web.routing in WebForms but couldn't find proper solution.
I am using asp.net routing with webforms on iis7. I've added below to webconfig file to get it working at first palace
<system.webServer><modules>
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>
</system.webServer>
Problem is that when i use routed pages Session state is not avaliable and i get
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
I have sesison state enabled and if i call page itself with aspx extension instead of routed url everything works fine.
Anyone know how to get session state work with routing?