Решение следующее. Версия CR, которая была установлена CR 11 R2. Данная версия не поддерживает weindows 2008 server
RSZ>Задача следующая:
RSZ>на старом сервере windows 2003 server(32 разрядный),iis 6, работал проект, который использует crystal reports
RSZ>дали новый сервак windows 2008 server(64 разрядный),iis 7. Установил CR(x64), но когда дело доходит до формирования отчета вылетает ошибка:
RSZ>The types of the parameter field and parameter field current values are not compatible.
RSZ>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
RSZ>Exception Details: System.Runtime.InteropServices.COMException: The types of the parameter field and parameter field current values are not compatible.
RSZ>Source Error:
RSZ>
RSZ>Line 99: {
RSZ>Line 100: case "DATA":
RSZ>Line 101: pfd.ApplyCurrentValues(SetParameterValue(new DateTime(year, month, 1)));
RSZ>Line 102: break;
RSZ>Line 103: case "VIDFORMI":
RSZ>
RSZ>Source File: c:\inetpub\wwwroot\PTO\ViewReport.aspx.cs Line: 101
RSZ>Stack Trace:
RSZ>[COMException (0x80042009): The types of the parameter field and parameter field current values are not compatible.]
RSZ> CrystalDecisions.ReportAppServer.Controllers.ParameterFieldControllerClass.SetCurrentValues(String ReportName, String ParameterFieldName, Values Values) +0
RSZ> CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition.ApplyCurrentValues(ParameterValues currentValues) +582
RSZ> ViewReport.SetCurrentValuesForParameterField(ReportDocument reportDocument) in c:\inetpub\wwwroot\PTO\ViewReport.aspx.cs:101
RSZ> ViewReport.Page_Prerender(Object sender, EventArgs e) in c:\inetpub\wwwroot\PTO\ViewReport.aspx.cs:142
RSZ> System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
RSZ> System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +48
RSZ> System.Web.UI.Control.OnPreRender(EventArgs e) +6057103
RSZ> System.Web.UI.Control.PreRenderRecursiveInternal() +118
RSZ> System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3681