Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Dependency injection failure with ASP.NET Core 2.1 MVC and version 1.0.42 #43

Open
coldacid opened this issue Sep 20, 2018 · 0 comments

Comments

@coldacid
Copy link

coldacid commented Sep 20, 2018

Every request fails with the following exception being thrown:

InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'WebEssentials.AspNetCore.Pwa.ServiceWorkerTagHelperComponent'.

Suggested that readme is updated to mention that IHttpContextAccessor needs to be registered in services inside the ConfigureServices() method for those of us who aren't using identity and forget that this isn't registered by default. Thanks.

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

No branches or pull requests

1 participant