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

Website crashes with non-obvious exception when at least one controller can't be created. #454

s-maksim opened this issue Sep 23, 2016 · 0 comments


Copy link

commented Sep 23, 2016


  • MvcSiteMapProvider_SecurityTrimmingEnabled is set to True
  • One controller with constructor that throws an exception


Open any page.

Actual behavior:

Website crashes with the following exception: System.ArgumentNullException: Value cannot be null.

Expected behavior

Original exception is thrown.

P.S. In my case it appears when a WCF service endpoint is missing in Web.config. DI library tries to inject that service to controller via constructor and fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.