SAP Knowledge Base Article - Public

1675648 - ReportDocument.SetDataSource() throws an error "The Report Application Server failed" while running the report.


  • ReportDocument.SetDataSource() throws an error while running the report in custom .NET web application.

Error: System.Runtime.InteropServices.COMException: {"The Report Application Server failed"}

StackTrace:  at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)\r\n at
CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)\r\n at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)\r\n at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)\r\n at


  • Windows 7
  • Visual Studio 2010
  • SAP Crystal Server 2011 SP02 OEM Edition
  • Crystal Reports for Visual Studio 2010
  • Web application using C#


Web application was referencing to assemblies of Crystal Reports for Visual Studio 2010 (13.x).


  1. Remove the assembly references of Crystal Reports for Visual Studio 2010 (13.x)  from the application.
  2. Install the .NET SDK for SAP Crystal Server 2011 SP02 OEM Edition as given in KB1674575
  3. Add the references of newly installed SDK in application. The new assembly version would be 14.x

Note: Crystal Reports for Visual Studio 2010 (13.x) shouldn't be used with BI 4.0 (14.x) products as

  1. The assembly versions are different 
  2. BI 4.0 products have their own CrystalReportsViewer
  3. Last but not the least, APIs could be different.


ras failed not connecting sdk net cr , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


SAP Crystal Reports Server 2011, OEM edition ; SAP Crystal Reports, developer version for Microsoft Visual Studio