我有同樣的錯誤,但在我的情況下,它與sessionstate無關(至少,它不是問題的根源)。
您是否在Global.asax文件中設置了錯誤處理? 如果是這樣,現在就禁用它。
protected void Application_Error(object sender, EventArgs e)
{
Exception exception = Server.GetLastError();
RouteData routeData = new RouteData();
routeData.Values.Add("controller", "ErrorController");
routeData.Values.Add("action", "HandleTheError");
routeData.Values.Add("error", exception);
Response.Clear();
Server.ClearError();
IController errorController = new ErrorController();
errorController.Execute(new RequestContext(
new HttpContextWrapper(Context), routeData));
}
禁用此代碼後,我收到了一個http 404錯誤,指出我的某個頁面無法找到。 不要忘了添加mvc擴展到你的鏈接。如果解決根目錄問題,請使用Url.Content函數與「〜/」的組合。
檢查和雙重檢查會話狀態應該工作:(。 – Morph 2009-01-25 18:03:11