I have a report that works fine in an ASP.NET 4.5 app in IIS on Windows 7 and Windows Server 2008 R2, but fails on Windows Server 2012 and Windows Server 2012 R2.
This is using Crystal Reports Basic Runtime for Visual Studio 2008 (10.5.0) x64. Installing 10.5 SP1 (10.5.1) did not help.
The datasource is an ADO.NET DataSet at runtime, with an XSD file at design-time.
I have debugged the app on the server to ensure the DataTable column is valid and present in the DataSet passed to CR.
The same report with the same database and query to build the DataSet runs normally up until it is run on Win2012 or later.
The error is "This filed name is not known."
CrystalDecisions.CrystalReports.Engine.FormulaException occurred
HResult=-2147214848
Message=This field name is not known.
Error in File C:\...{D106385F-1C37-4CE3-8106-E7798EF1F2F3}.rpt:
Error in formula <Object_Visibility>.
'if ({ReportDetail_ds.DAY26} <> 'Y') then
'
This field name is not known.
Source=CrystalDecisions.ReportAppServer.DataSetConversion
StackTrace:
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
...
Source=""
ErrorCode=-2147217383