Created
May 20, 2021 11:06
-
-
Save bjoerntx/df10899da4d2511755ad35ca093e945e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MvcApplication : System.Web.HttpApplication { | |
protected void Application_Start() { | |
AreaRegistration.RegisterAllAreas(); | |
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
ValueProviderFactories.Factories.Remove( | |
ValueProviderFactories.Factories.OfType<JsonValueProviderFactory>().FirstOrDefault()); | |
ValueProviderFactories.Factories.Add(new JsonDotNetValueProviderFactory()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment