Symptom
- 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
Environment
- Windows 7
- Visual Studio 2010
- SAP Crystal Server 2011 SP02 OEM Edition
- Crystal Reports for Visual Studio 2010
- Web application using C#
Cause
Web application was referencing to assemblies of Crystal Reports for Visual Studio 2010 (13.x).
Resolution
- Remove the assembly references of Crystal Reports for Visual Studio 2010 (13.x) from the application.
- Install the .NET SDK for SAP Crystal Server 2011 SP02 OEM Edition as given in KB1674575
- 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
- The assembly versions are different
- BI 4.0 products have their own CrystalReportsViewer
- Last but not the least, APIs could be different.
Keywords
ras failed not connecting sdk net cr , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem