Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0

后端 未结 7 919
谎友^
谎友^ 2021-01-07 22:15

I am working in c# 4.0 to read a signed request I am using the following code

FacebookApp fap = new FacebookApp();
fap.AppId = \"789485219211963\"; // App ID         


        
7条回答
  •  Happy的楠姐
    2021-01-07 22:43

    I had the same problem with my Xamarin.Forms PCL WinPhone8.1 project after upgrading all NuGet packages for the solution. The problem was with Newtonsoft.Json v9.0.0 in the winPhone8.1 project.

    All other projects worked correctly. Spent two days trawling all advice and finally resolved the problem by deleting the project, pulling a clone of the project from my git and adding back into the solution. Still failed (although the git version worked fine before the commit.)

    Deleted reference for Newtonsoft, reinstalled the old version 8.0.3, then upgraded via NuGet to V9.0.0.

    Then deleted all references to Newtonsoft from the winPhone8.1 project Bin/ARM/Debug, Bin/x86/Debug and Obj/ARM/Debug/MSIL and MDIL directories. Did a build and SUCCESS.

提交回复
热议问题