Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
m3dbedb opened this issue Jul 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@m3dbedb
Copy link

m3dbedb commented Jul 24, 2024

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
@m3dbedb m3dbedb added the bug Something isn't working label Jul 24, 2024
@MOHAMEDALEEM
Copy link

Yes getting same issue do you get any solution or any other reporting tool to use

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants