Skip to content

Page 374 item 6 Some services are not able to be constructed. #36

@mgerber2

Description

@mgerber2

Getting this error:

Unhandled exception. System.AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Northwind.Repositories.ICustomerRepository Lifetime: Scoped ImplementationType: Northwind.Repositories.CustomerRepository': Unable to resolve service for type 'Northwind.EntityModels.NorthwindContext' while attempting to activate 'Northwind.Repositories.CustomerRepository'.)
---> System.InvalidOperationException: Error while validating the service descriptor 'ServiceType: Northwind.Repositories.ICustomerRepository Lifetime: Scoped ImplementationType: Northwind.Repositories.CustomerRepository': Unable to resolve service for type 'Northwind.EntityModels.NorthwindContext' while attempting to activate 'Northwind.Repositories.CustomerRepository'.

Also getting

Unable to connect to web server 'https'. The web server is no longer running.

This happens when I start the web server without debugging.

This was working before I started the Understanding CORS section.

If you can tell me how to resolve this and what you did to determine the issue it would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions