I have C# n-layer application. Normaly we use Forms authentication and everything works fine, but when we tried to set authentication on Windows, it started to throw following exception in some occassions (mostly in administration, for exaple when you try edit user and client calls server for user details) This isn't happening in Internet Explorer at all. In Firefox and Chrome it throws it every time.
System.Web.HttpException (0x80004005):
Server cannot set status after HTTP headers have been sent.
at System.Web.HttpResponse.set_StatusCode(Int32 value)
at System.Web.HttpResponseWrapper.set_StatusCode(Int32 value)
at System.Web.Mvc.HttpStatusCodeResult.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
Please, can you give me some advice what could possibly go wrong and how to fix it? Thanks