I am returning around 20ish thumbnails on a page. Problem is that the last few (always around 5~) load very slowly.
No difference whether I am loading them like
using(FileStream ltFS = new FileStream(Server.MapPath("~/Themes/Content/Images/nocover.png"), FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite))
or
return File(Server.MapPath("~/Themes/Content/Images/nocover.png"), "image/png");
I google and found this on SO
[SessionState(System.Web.SessionState.SessionStateBehavior.Disabled)]
If I am trying that, I get the error
The SessionStateTempDataProvider class requires session state to be enabled.