2013-04-09 93 views
1

我得到以下錯誤,ASP.NET會話狀態已創建一個會話ID,但無法保存

會話狀態已創建一個會話ID,但無法保存它,因爲 響應已被應用程序刷新。

但我不會使用會話任何地方。我的應用程序用作API,它不使用會話狀態。

而且在Web.config中

<system.web> 
    <sessionState mode="Off"></sessionState> 
    </system.web> 

爲什麼會在每次請求此錯誤。

我已閱讀該主題。但他使用會話狀態。但我不會

What's causing 「Session state has created a session id, but cannot save it because the response was already flushed by the application.」

感謝

回答

2

嘗試也去除web.config中的會話模塊

<httpModules> 
    <remove name="Session" /> 
</httpModules> 

之後,總是有可能的某些部分的代碼或其他代碼,包括您的應用程序,嘗試使用會話 -

+0

它似乎確定.... – halit 2013-04-09 10:23:18