i just renewed my license and started writing tests.
i have a test that passes:
[img=https://i.imgur.com/NBG04Cb.png]Test Runner Passing[/img]
but NCrunch keeps showing the test as failing
[img=https://i.imgur.com/xjyvhnt.png]NCrunch showing fail[/img]
it seems like it has a cache that needs cleared but i can't find it. anyone have any ideas on this one?
NCrunch version 3.12.0.15
Visual Studio 2017 Version 15.5.4
Remco NCrunch Developer
#11807
15 Feb 2018 23:42 UTC
Hi, thanks for sharing this problem.
What is the nature of this exception? Does it appear consistently? Is there another dependency here?
If the test is failing consistently under NCrunch, then probably there is due to a difference between the NCrunch test environment and the one in which your test is passing. We've tried to document these as best we can. If you can give more information about why the test is failing, I may be able to help further.
What is the nature of this exception? Does it appear consistently? Is there another dependency here?
If the test is failing consistently under NCrunch, then probably there is due to a difference between the NCrunch test environment and the one in which your test is passing. We've tried to document these as best we can. If you can give more information about why the test is failing, I may be able to help further.
it is 100% consistent. i did some digging and it is JSON.NET
i am seeing this error.
There was a problem saving the new Contact ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\Newtonsoft.Json.dll' or one of its dependencies. The system cannot find the file specified.
i have am using Newetonsoft 11.01, via nuget, in NuGet.
it looks to be my DTO project. it has a JSON.NET reference to track fields that don't serialize and to ignore a couple of properties.
[JsonIgnore]
public HashSet<string> DirtyFields { get; }
[JsonIgnore]
public HashSet<string> DirtyObjects { get; }
[JsonExtensionData]
[JsonIgnore]
public IDictionary<string, JToken> UnmappedFields { get; private set; }
i am seeing this error.
There was a problem saving the new Contact ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\Newtonsoft.Json.dll' or one of its dependencies. The system cannot find the file specified.
i have am using Newetonsoft 11.01, via nuget, in NuGet.
it looks to be my DTO project. it has a JSON.NET reference to track fields that don't serialize and to ignore a couple of properties.
[JsonIgnore]
public HashSet<string> DirtyFields { get; }
[JsonIgnore]
public HashSet<string> DirtyObjects { get; }
[JsonExtensionData]
[JsonIgnore]
public IDictionary<string, JToken> UnmappedFields { get; private set; }
Remco NCrunch Developer
#11815
19 Feb 2018 21:48 UTC
Would you be able to try placing NCrunch in compatibility mode to see if any of these settings resolve the problem? Also, could you check if Newtonsoft.Json.dll exists at the searched location with the correct version?
Post a reply
Log in to reply.