FileLoadException was unhandled by user code

后端 未结 4 1421
无人共我
无人共我 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:27

    Most probably Newtonsoft.Json DLL is not properly deployed.

    Make sure you have the Newtonsoft.Json DLL in your (IIS / project) bin folder.
    Alternatively, you can also install that DLL to GAC if you plan to use it across multiple projects.

提交回复
热议问题