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.
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.