I have .net framework 4.6.1 mvc web application. I am creating a json file. File is getting created locally, however when I deploy code on IIS on server, it gives “Invalid Signature” error. Even moving the existing json file gives same error. Unable to debug as the functionality works locally.
Problem occurs only when array or list type is added to json file. for e.g
json file content
{“TypeOfTheTest”:”Custom”, “ExportData”:true} this works but below content gives issue of invalid signature.
{“TypeOfTheTest”:”Custom”, “ExportData”:true, “DataFiles”:[“C:Temp1.mme”]}
I tired creating file with content {“TypeOfTheTest”:”Custom”, “ExportData”:true} and it works but when I add list or array type to file invalid signature occurs.
I tried moving the existing json file using System.IO.File.Move, it also gives same problem ‘Invalid Signature’.