Forum Discussion

Russell Gove's avatar
Russell Gove
Iron Contributor
Jan 30, 2018

Issue using SharePointPnPCoreOnline in Azure Web Job

So I am trying to write my first-ever azure webjob to upload a bunch of  data to O365. I open VS2017 and  do File=> New Project =>Azure WebJob (.NET Framework).

 

I click F5 and the thing runs.

        

Then I use nugget to install SharePointPnPCoreOnline.  

I click f5and I get:

Exception thrown: 'System.IO.FileLoadException' in mscorlib.dll

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

How would I go about fixing this?

 

Resources