.NET Core 'Can't find object MsSqlDataConnection'
I am working to implement a Fast Report for in a .NET Core application.
The report uses MS SQL Connection with a query and passes the connection string as a parameter.
This same .FRX file is currently working in .NET Framework web application. In .NET Core application, at Report.Load(), an error gets thrown 'An exception of type 'FastReport.Utils.ClassException' occurred in FastReport.dll but was not handled in user code. Can't find object MsSqlDataConnection'
Any ideas on what is the cause of this error? Are reports with MS SQL Connection supported in Fast Reports .NET Core at all? Having trouble finding resources to implement this.
The report uses MS SQL Connection with a query and passes the connection string as a parameter.
This same .FRX file is currently working in .NET Framework web application. In .NET Core application, at Report.Load(), an error gets thrown 'An exception of type 'FastReport.Utils.ClassException' occurred in FastReport.dll but was not handled in user code. Can't find object MsSqlDataConnection'
Any ideas on what is the cause of this error? Are reports with MS SQL Connection supported in Fast Reports .NET Core at all? Having trouble finding resources to implement this.
public IActionResult CIPVIT()
{
var dateParameter = DateTime.Now;
var Report = new WebReport();
Report.Report.Load($@"ReportFiles/ReportName.frx"); //error thrown here.
Report.Report.SetParameterValue("ConnectionStringParameter", "Data Source=my connection string info here");
Report.Report.SetParameterValue("CutOffDate", dateParameter);
ViewBag.WebReport = Report;
return View();
}
Comments
2. in MVC Controller