1

I get error below,

Session state has created a session id, but cannot save it because the response was already flushed by the application.

But I dont'use Session any where. My application works as API and It doesn't use session State.

And in Web.config

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

Why this error going on every request.

I have read that topic. but He uses Session state. but I won't

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

Thanks

Community
  • 1
  • 1
halit
  • 1,128
  • 1
  • 11
  • 27

1 Answers1

2

Try to remove also the session module on web.config as

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

After that, there is always the possibility some part of your code, or other code that you include to your application, to try to use session -

Aristos
  • 66,005
  • 16
  • 114
  • 150