FastReports / FastReport

Free Open Source Reporting tool for .NET6/.NET Core/.NET Framework that helps your application generate document-like reports

Home Page:https://www.fast-report.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run FastReport/Demos/OpenSource/MVC/FastReport.OpenSource.MVC.6.0

m3dbedb opened this issue · comments

Describe the bug
Build errors

To Reproduce
Steps to reproduce the behavior:

  1. ~ $ git clone https://github.com/FastReports/FastReport.git
  2. cd ~/FastReport/Demos/OpenSource/MVC/FastReport.OpenSource.MVC.6.0
  3. dotnet add package FastReport.OpenSource --version 2024.2.1
  4. dotnet add package FastReport.OpenSource.Web --version 2024.2.1
  5. FastReport.OpenSource.MVC.6.0 $ dotnet run
  6. See errors:

Unhandled exception. System.Exception: Please, register FastReport services in DI container. Use services.AddFastReport()
at Microsoft.AspNetCore.Builder.FastReportBuilderExtensions.FastReportServicesCheck(IServiceProvider serviceProvider)
at Microsoft.AspNetCore.Builder.FastReportBuilderExtensions.SetupFastReport(Action1 setupAction, IServiceProvider serviceProvider) at Microsoft.AspNetCore.Builder.FastReportBuilderExtensions.UseFastReport(IApplicationBuilder app, Action1 setupAction)
at Demo.MVC.Net6.Program.Main(String[] args) in /home/username/FastReport/Demos/OpenSource/MVC/FastReport.OpenSource.MVC.6.0/Program.cs:line 35

Expected behavior
I expect to see demo report in web browser

Device (please complete the following information):

  • OS: debian 12 amd64
  • Browser: chrome
  • Version: 2024.2.1