Issue in Global.asax.cs page in MVC4

后端 未结 7 1603
轮回少年
轮回少年 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:15

    Also try doing the opposite (no offense) to what David Bohunek suggests. I tried Davids suggestion to no avail. Then I would up removing that reference that was referenced directly in the "Assemblies" section.

    Then I removed the Web Api 2.2 and Web Api 2.2 Web Host Nugets, performed a clean and then JUST added back the Web Api 2.2 Web Host NuGet.

    Try that. Good luck, it worked for me.

提交回复
热议问题