maartenba / MvcSiteMapProvider

An ASP.NET MVC SiteMapProvider implementation for the ASP.NET MVC framework.
Microsoft Public License
537 stars 220 forks source link

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

Open s-maksim opened 7 years ago

s-maksim commented 7 years ago

Preconditions:

Steps:

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.