Description
In some cases the following exception can occur when ImageProcessor.Web.Episerver is installed. As a result, images will take a very long time to load.
Message Server cannot append header after HTTP headers have been sent.
Exception type System.Web.HttpException
Failed method ImageProcessor.Web.HttpModules.ImageProcessingModule.SetHeaders
Problem Id System.Web.HttpException at ImageProcessor.Web.HttpModules.ImageProcessingModule.SetHeaders
Assembly ImageProcessor.Web, Version=4.10.0.100, Culture=neutral, PublicKeyToken=null
This can occur when the primary domain is not set correctly or if there is a configuration issue.
Steps
- Ensure that the security.config has the following. Within DxP it may be called security-dxc.config.
<settings> <setting key="OnAzure" value="true"/> </settings>
- Verify that the primary domain is set to the proper URL within the Manage Websites section of the CMS admin. If incorrect, set to the main URL used to load the site.
- Upgrade ImageProcessor.Web.Episerver to the latest version.
- If the issue continues, check the ImageProcessor.Web.Episerver Github for known issues. If it is a new issue, please report it there.
https://github.com/vnbaaij/ImageProcessor.Web.Episerver/issues