1197146 - Error: "Server Error in '/ConstructionStages' Application...Compiler Error Message: CS0030" in .NET web application

SAP Knowledge Base Article - Public

1197146 - Error: "Server Error in '/ConstructionStages' Application...Compiler Error Message: CS0030" in .NET web application

Symptom

A Microsoft Visual Studio .NET web application works as expected on a development computer. Once the application is deployed to a test server, the following error message appears:
 
"Server Error in '/ConstructionStages' Application.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0030: Cannot convert type 'ASP.report_aspx' to 'CrystalDecisions.Web.Report'

Source Error:

Line 118: public report_aspx() {
Line 119: string[] dependencies;
Line 120: ((Report)(this)).AppRelativeVirtualPath = "~/Report.aspx";
Line 121: if ((global::ASP.report_aspx.@__initialized == false)) {
Line 122: dependencies = new string[1];

Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\constructionstages\b744f8db\57c58550\App_Web_report.aspx.cdcab7d2.zjyfcabk.0.cs Line: 120"

Cause

The application is creating a class called Report as:
 
Public partial class Report
{
...
}
This class conflicts with a Crystal Reports Report class defined in the CrystalDecisions.Web.dll.

Resolution

Change the class name in the application to asp_Report, recompile and redeploy.

Keywords

ConstructionStages Compilation Error net Compiler Error Message: CS0030 , 273985 , KBA , BI-RA-CR , Crystal Reports designer or BusinessViews Manager , Problem

Product

SAP Crystal Reports XI ; SAP Crystal Reports XI R2