Skip to content
This repository was archived by the owner on Nov 2, 2018. It is now read-only.

Try to addScoped abstract class #347

Closed
markusvt opened this issue Jan 19, 2016 · 1 comment
Closed

Try to addScoped abstract class #347

markusvt opened this issue Jan 19, 2016 · 1 comment

Comments

@markusvt
Copy link

I just came across the following problem:

In the Startup.cs in the configureServices Method I added the following line
services.AddScoped();

When I tried to start the application locally, the Browser only showed "Please wait" and when trying to debug the whole IIS crashed.
I looked into it an saw, that my GenericRepository was accidentally marked as abstract. So I removed that and all worked fine.

Maybe it is possible for you to throw an Exception in such a case, so that not the whole IIS crashes on such a developer error.

@pranavkm
Copy link
Contributor

Dup of aspnet/Tooling#363. You should see an exception if you're running this via kestrel.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants