This is a migrated thread and some comments may be shown as answers.

Attempted to read or write protected memory

1 Answer 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Youssef asked on 04 Jan 2011, 12:30 PM

We have a SharePoint 2007 farm hosting several pages containing various terlerik controls. One specific page produces reports thanks to Telerik Reporting. The page works on our development environments but fails in Test and QA environments. Those are both set as follow:

VMWare 3.5.0 build-213532
Windows 2003 Std x64 SP2
IIS 6.0
Sharepoint 2007 SP 2 -

We receive the following error:

Server Error in '/' Application. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The stacktrace points to the System.Drawing.Gdip.GdipSaveImageToStream method - Please see file attached.

We followed many leads (web.config, users' rights, database, asp temporary folders, perfmon....) but could not sort this issue. The event viewer does not show any event related to that issue. The SharePoint ULS do not show any line related to this issue. The IIS logs do not show any lines related to this issue. There is no memory or cpu peaks occurring any time on the server.

The page is built with a Telerik.ReportViewer.WebForms.ReportViewer  hosting a Telerik.reporting.Report. This report contains 8 charts using various fields from a result set returned by a stored procedure. To improved performance, this sproc is called once - the data is retrieved for the first chart only and reused to bound the 7 other charts (every chart NeedDataSource event points to Chat1_NeedDataSource method).

Interestingly, if we select incorrect parameters before requesting the report execution hence retrieving some invalid data that causes most charts to fail (6 out of 8), the remaining charts are rendered correctly. This seems consistent with the error message, that is, the more charts are being rendered the more risks of the error occurring.

This is the only page using Telerik.Reporting. Other pages use Telerik controls (including RadChart) but do not display the issue. The size of each chart checked on development environments is around 7Kb. The size of the chart created on another page via RadChart is 35Kb.

Have you ever seen anything like this?

Please let me know which information you need to help us.

Best regards,


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 05 Jan 2011, 08:31 AM
Hi Youss,

According to your explanations, the project works fine on the dev machines but only fails on the virtual machines, correct? In this line of thoughts, this seems like a non product related issue and you might consider contacting VMWare for this issue. Moreover it seems like they had such an issue before as well according to this KB article:
You might also review the following forum thread that seems relevant to the problem:

the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question