Posted 4 February 2018, 5:29 am EST
Last fall I created a project that displays Flexviewer reports using VS2015 ASP.NET Core 1.1 and .Net Framework 4.6.1 but NOT with a separate report service. Rather, the reports were in the wwwroot/ReportsRoot folder. The three C1 references I used are:
“C1.AspNetCore.Mvc.FlexViewer”: “1.0.20173.143”,
“C1.AspNetCore.Mvc”: “1.0.20173.143”,
“C1.AspNetCore.Api.Report”: “1.0.20172.119”
(Note: I have updated to these version recently with no issues. At the time I was using 20172.129, 20172.129 and 20172.105)
At the end of Startup/Configure I have the following that is dependent on C1.AspNetCore.Api.Report: app.UseReportProviders().AddFlexReportDiskStorage(“ReportsRoot”, Path.Combine(env.WebRootPath, “ReportsRoot”));
This month I have re-written the whole project in ASP.NET Core 2.0. (It was somewhat unsettling looking at the C1 Documentation for Flexviewer and seeing that there is no reference to ASP.NET 2.0 and the instruction are still that a separate report service must be created.)
In the VS2017 ASP.NET 2.0 project when I bring in C1.AspNetCore.Api.Report, there is an error message that it was “restored using .NetFramework, Version 4.6.1’ instead of the project framework ‘NETCoreApp=v2.0’. This package may not be full compatible with your project.”
This warning is pertinent to my project because the line in Startup, app.UseReportProviders().AddFlexReportDiskStorage(“ReportsRoot”, Path.Combine(env.WebRootPath, “ReportsRoot”));
no longer works. I tried installing version 105 of C1.AspNetCore.Api.Report but with no change.
Last Sep 25 I received a response that I understood to mean that, using ASP.NET 2.0, I would be able to even more simply include the Flexviewer report files in the same project, so I extended my license. What now?
Thanks.