Search code examples
c#asp.net-coreaspnetboilerplate

Internal Server Error (500) Asp.Net Boilerplate Web API


I have downloaded the free Asp.Net Boilerplate template for Angualr + Asp.Net Core, have created a new entity for Company and respected Dto(s) for it.

For accessing the API, I tried to create a dynamic controller by creating ICompanyAppService with the implementation CompanyAppService.

But it's showing the internal server error (500) while accessing this link "/api/services/app/Company/GetAll".

Swagger UI is showing the correct proper API URl(s) as User's. Please try to help me on this issue.

Here is the link for the solution: https://github.com/rsoni20/AspNetBoilerPlate

and link for Logs.txt - https://github.com/rsoni20/AspNetBoilerPlate/blob/master/Logs.txt


Solution

  • The problem is with the class ME.Companies.CompanyAppService

    It must have a public parameter-less constructor, and it had a private one.