FileLoadException was unhandled by user code

后端 未结 4 1419
无人共我
无人共我 2021-01-02 23:52

I am setting up the API for my MVC-4 app and when I uncommented this line in Globals.asax.cs:

WebApiConfig.Register(GlobalConfiguration.Configuration);
         


        
4条回答
  •  庸人自扰
    2021-01-03 00:16

    Simply delete your Newtonsoft.Json dll from bin folder then open package.config file and remove your Newtonsoft.Json entry from there then reinstalled your Newtonsoft.Json by command but don't installed newer version if you face this problem with newer version find old version command

    like Install-Package Newtonsoft.Json -Version 6.0.8 now Install-Package Newtonsoft.Json -Version 7.0.1 is also aviable but i suggest to you installed 6.0.8 version its working

提交回复
热议问题