problem with RadCompression in Q2 build

9 posts, 0 answers
  1. AgJeff
    AgJeff avatar
    9 posts
    Member since:
    Jul 2008

    Posted 02 Jun 2009 Link to this post

    I have ELMAH running on my server which reports and logs errors that might otherwise not be seen. Running on IIS 7 server fully patched. I have a web application that after I updated to the latest build (2009.1.527.35) starts throwing this error


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

    Generated: Mon, 01 Jun 2009 18:55:13 GMT

     
    System.Web.HttpException: Server cannot append header after HTTP headers have been sent.
       at System.Web.HttpResponse.AppendHeader(String name, String value)
       at Telerik.Web.UI.RadCompression.application_EndRequest(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  2. Bruno
    Bruno avatar
    105 posts
    Member since:
    Mar 2008

    Posted 04 Jun 2009 Link to this post

    I think that this error may be caused by calling flush on the response. You may consider excluding the handler from compression module by overriding the module's  IsHttpCompressionEnabled method similar to the following:

    public class MyModule: RadCompression 
        { 
            public override bool IsHttpCompressionEnabled() 
            { 
                if (HttpContext.Current.Handler is <YOUR_HANDLER_TYPE>) 
                { 
                    return false
                } 
                return base.IsHttpCompressionEnabled(); 
            } 
        } 

    -- Bruno
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AgJeff
    AgJeff avatar
    9 posts
    Member since:
    Jul 2008

    Posted 05 Jun 2009 Link to this post

    I don't believe this has anything to do with the handler because
    1. it only happens on one page on the site
    2. it worked without incident in all builds prior to this one

    I only mention ELMAH because this is an error that most people would never know about and would not have seen. I only know about it because it's reported to me each time it happens

    There is a rad rotator control on the page but nothing else of interest
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 10 Jun 2009 Link to this post

    Hello,

    Can you please check the latest internal build and see if the issue you are facing still exists? Please give it a try and let us know about the result.

    Kind regards,
    Rosen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Gold Systems
    Gold Systems avatar
    9 posts
    Member since:
    Feb 2009

    Posted 22 Jun 2009 Link to this post

    Hello,

    We are currently experiencing the same issue, but I cannot confirm it was caused by the latest build.  We are fully updated, IIS7, Telerik version 2009.1.527.35.

    Just curious if anything has come of this yet.
  7. AgJeff
    AgJeff avatar
    9 posts
    Member since:
    Jul 2008

    Posted 22 Jun 2009 Link to this post

    I have not yet tried the latest internal build - will wait for the release since it's not a show stopper. Thought I would mention that IIS compression is not turned on for this site.
  8. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Jun 2009 Link to this post

    Hello guys,

    Follow the directions provided in Bruno's post and try the latest internal build from your accounts or the Q2 2009 (scheduled in the begging of the next month) to see whether this helps.
     
    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. kfrancis
    kfrancis avatar
    69 posts
    Member since:
    Dec 2008

    Posted 11 Sep 2009 Link to this post

    We're also getting this issue quite often. Quite annoying, although nothing seems to be broken. ELMAH just returns the error every few minutes.

    System.Web.HttpException: Server cannot append header after HTTP headers have been sent. 
    Generated: Fri, 11 Sep 2009 16:46:56 GMT 
     
    System.Web.HttpException: Server cannot append header after HTTP headers have been sent. 
       at System.Web.HttpResponse.AppendHeader(String name, String value) 
       at Telerik.Web.UI.RadCompression.application_EndRequest(Object sender, EventArgs e) 
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
     

    Any suggestions? We're using RadControls Q2 2009, .NET 3.5 and Elmah.
  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 14 Sep 2009 Link to this post

    Hello Kori,

    Can you check whether this problem appears with the Q2 2009 SP1 release (2009.2.826) of RadControls for ASP.NET AJAX? If so, I suggest you isolate a simplified version of your project, exhibiting it, and send it enclosed to a standard support ticket. I will test/debug it locally an will get back to you with my findings.

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017