Skip to content

System.Web.HttpException: Server cannot append header after HTTP headers have been sent. #1205

Closed

Description

@mgesing

Caused by Response.End() in WebWorkContext::CurrentCustomer and logged through SmartController::OnException.

Activity

  1. added this to the 3.1 milestone on Jul 18, 2017
  2. mgesing commented on Jul 27, 2017

    @mgesing
    ContributorAuthor

    Other occurrences:

    System.Web.HttpException (0x80004005): Der Server kann die Cookies nicht ändern, nachdem HTTP-Header gesendet wurden.
       bei System.Web.HttpResponse.BeforeCookieCollectionChange()
       bei System.Web.HttpCookieCollection.Set(HttpCookie cookie)
       bei SmartStore.EuCookieLaw.Filters.EuCookieLawFilter.OnActionExecuting(ActionExecutingContext filterContext)
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.InvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex)
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.InvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex)
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.InvokeActionMethodFilterAsynchronouslyRecursive(Int32 filterIndex)
    
    GET /Country/GetStatesByCountryId?countryId=1&addEmptyStateIfRequired=true
    System.Web.HttpException (0x80004005): Der Server kann den Inhaltstyp nicht festlegen, nachdem HTTP-Header gesendet wurden.
       bei System.Web.HttpResponse.set_ContentType(String value)
       bei System.Web.HttpResponseWrapper.set_ContentType(String value)
       bei SmartStore.Web.Framework.Modelling.JsonNetResult.ExecuteResult(ControllerContext context)
       bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
    
    POST /Checkout/BillingAddress
    System.Web.HttpException (0x80004005): Keine Umleitung, nachdem die HTTP-Header gesendet wurden.
       bei System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
       bei System.Web.HttpResponseWrapper.Redirect(String url, Boolean endResponse)
       bei System.Web.Mvc.RedirectToRouteResult.ExecuteResult(ControllerContext context)
       bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
    bei System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
       bei System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
    
  3. modified the milestones: 3.0.3, 3.1 on Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions