Server Error in '/' Application

2 posts, 0 answers
  1. DoomerDGR8
    DoomerDGR8 avatar
    133 posts
    Member since:
    Aug 2010

    Posted 06 Jan 2011 Link to this post

    Hello All. I have build and deployed a Telerik web project to a Windows 2003 Standard server. I have used the Telerik's Report Viewer and loading a Report in it. All parameter generate some data. No possible query ever comes empty. Other reports without charts are working properly. Only Reports with charts are failing in a similar manner. Here is the whole exception output:

    -----------------------------------------------------------------------------
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details:
    System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

    Stack Trace:


    [AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
       System.Drawing.Gdip.GdipSaveImageToStream(HandleRef image, IStream stream, Guid& classId, HandleRef encoderParams) +0
       System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) +276
       System.Drawing.Image.Save(Stream stream, ImageFormat format) +36
       Telerik.Reporting.HtmlRendering.ChartRenderer.SaveImageInStream(HtmlRenderingContext context, Image image, String mimeType) +86
       Telerik.Reporting.HtmlRendering.ChartRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context) +64
       Telerik.Reporting.HtmlRendering.HtmlItemRender.Telerik.Reporting.HtmlRendering.IReportItemRender.Render(ProcessingElement processingElement, RenderingContext context) +233
       Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +50
       Telerik.Reporting.HtmlRendering.Matrix.RenderInternal(HtmlRenderingContext context) +3486
       Telerik.Reporting.HtmlRendering.Matrix.Render(HtmlRenderingContext context) +42
       Telerik.Reporting.HtmlRendering.ReportSectionBaseRenderer.RenderInternal(ProcessingElement processingElement, HtmlRenderingContext context) +69
       Telerik.Reporting.HtmlRendering.HtmlItemRender.Telerik.Reporting.HtmlRendering.IReportItemRender.Render(ProcessingElement processingElement, RenderingContext context) +233
       Telerik.Reporting.HtmlRendering.RenderingContext.Render(ReportItemBase item) +50
       Telerik.Reporting.HtmlRendering.HtmlPage.RenderReportSections(HtmlWriter bodyWriter) +563
       Telerik.Reporting.HtmlRendering.HtmlPage.RenderBody(HtmlWriter bodyWriter) +323
       Telerik.Reporting.HtmlRendering.HtmlPage.Render(HtmlTextWriter primaryWriter, HtmlRenderingContext renderingContext) +118
       Telerik.Reporting.HtmlRendering.HtmlReport.Render(HtmlTextWriter writer) +331
       Telerik.Reporting.HtmlRendering.HtmlRenderingExtension.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +134
       Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +730
       Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback) +377
       Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) +462
       Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) +119
       Telerik.ReportViewer.WebForms.HttpHandler.ProcessRequest(HttpContext context) +164
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

     


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
    -----------------------------------------------------------------------------

    I dont know why this is happening at all and I have tried whatever solution I could find from the internet. Only one other similar post exists and that is a WinApp on a virtual server so it is not me scenario.

    Kindly respond on urgent basis.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Jan 2011 Link to this post

    Hello Hassan,

    Unfortunately we can only guess what is causing the problem without a runnable project that exhibits the issue. The stacktrace you provided throws exception on .NET framework method which is properly invoked by our code, so we are not sure what is causing this to fail and under what circumstances.
    We would appreciate if you provide details on your machine setup along with a sample runnable project where you have stripped any unnecessary/irrelevant code and controls.

    All the best,
    Steve
    the Telerik team
    Get started with Telerik Reporting with numerous videos and detailed documentation.
  3. DevCraft banner
Back to Top