httpcontext.current.session zero routing requests


without routing, httpcontext.current.session there i know stateserver working. i lane requests, httpcontext.current.session null routed page. i am controlling .net 3.5 sp1 iis 7.0, but mvc previews. appears acquirerequeststate never discharged controlling routes event non-static isn't instantiated/filled.



when i try opening event variables, i error:



base {system.runtime.interopservices.externalexception} = {"session state wholly used enablesessionstate set true, presumably settlement record page directive. greatfully also certain system.web.sessionstatemodule tradition event state way enclosed <configuration>.



while debugging, i also blunder httpcontext.current.session permitted context.



--



my web.config looks this:



<configuration>
...
<system.web>
<pages enablesessionstate="true">
<controls>
...
</controls>
</pages>
...
</system.web>
<sessionstate cookieless="autodetect" mode="stateserver" timeout="22" />
...
</configuration>


here's iroutehandler implementation:



public category webpageroutehandler : iroutehandler, irequiressessionstate
{
open twine m_virtualpath { get; private set; }
open bool m_checkphysicalurlaccess { get; set; }

open webpageroutehandler(string virtualpath) : this(virtualpath, false)
{
}
open webpageroutehandler(string virtualpath, bool checkphysicalurlaccess)
{
m_virtualpath = virtualpath;
m_checkphysicalurlaccess = checkphysicalurlaccess;
}

open ihttphandler gethttphandler(requestcontext requestcontext)
{
(m_checkphysicalurlaccess
&& !urlauthorizationmodule.checkurlaccessforprincipal(
m_virtualpath,
requestcontext.httpcontext.user,
requestcontext.httpcontext.request.httpmethod))
{
pitch new securityexception();
}

twine var = string.empty;
foreach (var value requestcontext.routedata.values)
{
requestcontext.httpcontext.items[value.key] = value.value;
}

page page = buildmanager.createinstancefromvirtualpath(
m_virtualpath,
typeof(page)) page;// ihttphandler;

(page != null)
{
relapse page;
}
relapse page;
}
}


i've also attempted put enablesessionstate="true" tip aspx pages nonetheless still, nothing.



any insights? should i another httprequesthandler implements irequiressessionstate?



thanks.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?