Issue in Global.asax.cs page in MVC4

后端 未结 7 1566
轮回少年
轮回少年 2021-01-03 17:24

I my ASP.NET MVC 4 Project, my Global.asax.cs page shows the error on

 WebApiConfig.Register(GlobalConfiguration.Configuration);
7条回答
  •  失恋的感觉
    2021-01-03 18:04

    Update-Package Microsoft.AspNet.WebApi.WebHost -reinstall

    This worked for me. I was facing issues with the reference not being updated correctly on Update-package or even removing and installing the package again.

    The above command reinstalls all dependencies, and usually does the trick whenever I face nuget package reference issue.

提交回复
热议问题