Hangfire.Autofac | Hangfire job activator based on Autofac IoC | Dependency Injection library
kandi X-RAY | Hangfire.Autofac Summary
kandi X-RAY | Hangfire.Autofac Summary
Hangfire.Autofac
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Hangfire.Autofac
Hangfire.Autofac Key Features
Hangfire.Autofac Examples and Code Snippets
Community Discussions
Trending Discussions on Hangfire.Autofac
QUESTION
Exception: The requested service 'Mach.CharterPad.Business.TripManager' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'Mach.CharterPad.Business.TripManager' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.
...ANSWER
Answered 2019-Sep-23 at 15:34Unfortunately, there's not much here to go on - there's no actual question, no explanation of what steps have been taken to solve the problem, which questions have already been looked at, etc.
I recommend checking out this post on what makes a good SO question. This can help you - by working through some of the issues and helping get more eyes on the question; and it can help others - by narrowing down what things need to be looked at or understanding exactly what you're shooting for. Everyone wins with a well-written question, even people who may see a similar issue and are looking for help.
Given there's some guesswork to figure out what you're asking, I assume the question is something along the lines of:
I have [some sort of an ASP.NET app, likely Web API] running an OWIN pipeline. I also have background jobs running via Hangfire. I'm trying to share a container across the ASP.NET app and the Hangfire jobs, but I see an exception [at some point, but it's unclear when]. Why might this exception be occurring?
Well, first, the exception message tells you a lot:
The requested service 'Mach.CharterPad.Business.TripManager' has not been registered.
Looking at how your registrations are...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Hangfire.Autofac
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page