ASP.NET Core ConfigureServices()中调用AddMvc()异常KeyNotFoundException

本文主要介绍ASP.NET Core中,在Startup.cs中ConfigureServices()方法中调用services.AddMvc()方法,出现异常(KeyNotFoundException: The given key was not present in the dictionary. )的解决方法。

原文地址:ASP.NET Core ConfigureServices()中调用AddMvc()异常KeyNotFoundException

posted @ 2021-06-21 13:46  levizhong  阅读(108)  评论(0)    收藏  举报