NUnit forms test, Tricky exception:Resource lookup failed - infinite recursion detected.

I set up a test using Nunit forms. When I run the test I got the exception:

At a moment internationalization was implemented(accesing resource files), but I commented out the code.

I would need a hint how this exception occured.

Below is the stack trace.

[Resource lookup failed - infinite recursion detected. Resource name: Arg_NullReferenceException]

at System.Resources.ResourceReader.StripVersionField(String typeName)

at System.Resources.ResourceReader.InitSafeToDeserializeArray()

at System.Resources.ResourceReader.ReadResources()

at System.Resources.ResourceReader..ctor(Stream stream, Hashtable table)

at System.Resources.RuntimeResourceSet..ctor(Stream stream)

at System.Resources.ResourceManager.CreateResourceSet(Stream store)

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)

at System.Environment.GetResourceString(String key)

at System.NullReferenceException..ctor()

at System.String.Compare(String strA, Int32 indexA, String strB, Int32 indexB, Int32 length)

at System.String.EndsWith(String value)

at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)

at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Boolean checkForDuplicates, Boolean needFullPath)

at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)

at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)

at System.Environment.GetFolderPath(SpecialFolder folder)

at Adapdev.AppDomainManager.GetCachePath()

at Adapdev.AppDomainManager.Unload()

at Adapdev.UnitTest.Core.LocalSeparateTestEngine.ShutDown()

at Adapdev.UnitTest.Core.LocalSeparateTestEngine.Dispose(Boolean disposing)

at Adapdev.UnitTest.Core.LocalSeparateTestEngine.Dispose()

at Zanebug.Console.Class1.Run()

System.NullReferenceException: [Resource lookup failed - infinite recursion detected. Resource name: Arg_NullReferenceException]

at System.Globalization.DateTimeFormatInfo.get_CurrentInfo()

at System.Globalization.DateTimeFormatInfo.GetInstance(IFormatProvider provider)

at System.DateTime.ToString(String format, IFormatProvider provider)

at System.DateTime.ToString()

at Adapdev.UnitTest.Core.TextFormatter.FormatResults(TestAssemblyResult[] results, Boolean showDetails, Boolean showOutput, Boolean showFailures)

at Adapdev.UnitTest.Core.TextFormatter..ctor(TestAssemblyResult[] results, Boolean showDetails, Boolean showOutput, Boolean showFailures)

at Zanebug.Console.Class1.Run()



Answer this question

NUnit forms test, Tricky exception:Resource lookup failed - infinite recursion detected.

  • NUnit forms test, Tricky exception:Resource lookup failed - infinite recursion detected.