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

时间:2021-06-21 20:44:57   收藏:0   阅读:0

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

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!