SAP Knowledge Base Article - Public

1671040 - Conversion.ToReportClientDocument throws error "Attempted to read or write protected memory"

Symptom

  • Using the RAS .NET SDK Conversion.ToReportClientDocument()
  • Getting error "Attempted to read or write protected memory"

accesserror.jpg

Environment

  • Windows 7
  • Crystal Server 2011 SP02
  • Visual Studio 2010
  • RAS .NET SDK

Cause

This issue has been identified and logged under Problem ID ADAPT01589840.

Resolution

  • There is no solution to this problem but has few temporary workarounds like:
    1. Run the application in IIS than on Cassini server.
    2. Store the ReportClientDocument in Session memory instead of serializing it to an XML string.

Note: Application Pool should use Classic Pipeline Mode with Run 32 bit application set to True.

Keywords

 ADAPT01589840  01589840 1589840 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Bug Filed

Product

SAP Crystal Server 2011