Razor page after deploy it is not working
in testing in visual studio
working
but after deploy in IIS
i try to make but not work
app.UseFastReport(options => options.RouteBasePath = "/print/wwwroot/Reports");
This discussion has been closed.
in testing in visual studio
working
but after deploy in IIS
i try to make but not work
app.UseFastReport(options => options.RouteBasePath = "/print/wwwroot/Reports");
Comments
Hello!
When you specified /print/wwwroot/Reports, the front-end started requesting scripts and icons from a non-existent URL.
Leave `app.UseFastReport();` with the default `RouteBasePath` value (“_fr”) and add `app.UsePathBase(‘/print’);` (or, for a reverse proxy, set options.RouteBasePath = ‘/print/_fr’).
Set the path to the folder containing the .frx files via IWebHostEnvironment.WebRootPath / ContentRootPath when calling webReport.Report.Load(...), rather than in RouteBasePath.
Test application: https://www.dropbox.com/scl/fi/74anjkrb2m3eeustx81xm/FastReport.Core.Skia.MVC.6.0.%20-Online-Designer-Trial-2.zip?rlkey=jigjg2bil32ce7q6b9h8nxlx1&st=hpqtkheg&dl=0