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

MVC4 throws exception when using autofac and MVC async controller actions #180

Closed
TorreyGarland opened this issue Jun 11, 2020 · 3 comments

Comments

@TorreyGarland
Copy link

Seems to have a problem with autofac lifetime scopes.

@winstonmark710
Copy link

Awesome work thanks for sharing this Fix info with us.

@billwatsons721
Copy link

Check your Autofac configuration for async support. Ensure you register async dependencies correctly. Also, verify if you're using the latest version of Autofac compatible with MVC4 and async actions.

@jamesboston816
Copy link

MVC4 throws exceptions when using Autofac with MVC async controller actions due to improper configuration. Ensure that the async controllers and their dependencies are correctly registered in Problems Autofac. Updating to the latest Autofac and MVC packages might also resolve compatibility issues. Properly configuring dependency injection can prevent these exceptions.

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

5 participants
@TorreyGarland @winstonmark710 @billwatsons721 @jamesboston816 and others