message=Server cannot append header after HTTP headers have been sent.
stack= at System.Web.HttpResponse.AppendHeader(String name, String value) at PeterD.Compress.HttpModule.context_PostReleaseRequestState(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
---
If I edit the config file to exclude all my directories with images (like the media dir), the problem goes away. But why is this happening, how can I fix it?
Errors - Module trying to compress images!?
It seems like the module is trying to compress my images?! I get an error in my eventlog for every image the browser loads, example:
---
Request URL: http://dev/media/2689/logo.jpg
type=System.Web.HttpException
message=Server cannot append header after HTTP headers have been sent.
stack=
at System.Web.HttpResponse.AppendHeader(String name, String value)
at PeterD.Compress.HttpModule.context_PostReleaseRequestState(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
---
If I edit the config file to exclude all my directories with images (like the media dir), the problem goes away. But why is this happening, how can I fix it?
/N
Hi,
what is the OS your server is running?
Are you using .net 2 or .net 3.5 to run your site?
What does your PeterDCompress.config file look like?
I vaguely remember seeing the same, but not sure. With the info I asked, I can try to investigate the problem.
Regards,
Peter
It's Windows 2003 Server and .NET 3.5
IIS has been set up for friendly URLs according to these instructions:
http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls
config file looks like this:
---
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<sectionGroup name="PeterD">
<section name="Compress" type="PeterD.Compress.Configuration, PeterD.Compress"/>
</sectionGroup>
</configSections>
<PeterD>
<Compress compressionType="GZip" FrontEnd="true" BackEnd="true">
<IncludedMimeTypes>
<add mime="text/html" />
</IncludedMimeTypes>
<ExcludedPaths>
<add path="umbraco/plugins/tinymce3/" />
<add path="standard" />
<add path="umbraco/users/PermissionEditor.aspx" />
</ExcludedPaths>
</Compress>
</PeterD>
</configuration>
---
Thanks!
Ok, I've seen the same error, however, it occured only once on my system so far (only for 1 image on the whole site, a gif-image).
It appears to be the first image being loaded after a compressed file. Does it happen to all of your images on the site?
I'll try to investigate more.
Yes, it's happening all over the site. Both for images in the media dir and other Umbraco dirs.
On my local machine running Win 7 and the Visual Studio dev server everything works fine though, no errors.
Thanks for looking into it.
Maybe I'll check out the source code and see if I can find something there.
is working on a reply...