当前位置:编程学习 > C#/ASP.NET >>

只能在引发“HttpApplication.AcquireRequestState”之前调用“HttpContext.SetSessionStateBehavi

解决方案内项目能够正常运行,部署在IIS7+,访问出现
只能在引发“HttpApplication.AcquireRequestState”之前调用“HttpContext.SetSessionStateBehavior”


index.aspx 代码
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (Request.ApplicationPath != null) HttpContext.Current.RewritePath(Request.ApplicationPath);

IHttpHandler httpHandler = new MvcHttpHandler();

httpHandler.ProcessRequest(HttpContext.Current);
}
</script> asp.net IIS7 IHttpHandler 
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,