extentreports-csharp icon indicating copy to clipboard operation
extentreports-csharp copied to clipboard

Can not generate Spark Report in C# ExtentReport 5.0.2. - Exception being thrown.

Open garry-edmonds opened this issue 1 year ago • 1 comments

Written the basic test to see whats going on. Running .Net Framework 4.7.2

        try
        {            
            var ext = new ExtentReports();
            var htmlReporter = new ExtentSparkReporter("C:\\Temp\\Spark.html");
            ext.AttachReporter(htmlReporter);
            ext.CreateTest("Does this show").CreateNode("Child Test").Pass("This passed.");
            ext.Flush();
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            throw;
        }

Getting exception -

Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

garry-edmonds avatar Mar 07 '24 10:03 garry-edmonds

I'm getting the report but screenshot is not attached when somewhere script throw error while running the test.

Khitish1995 avatar Apr 12 '24 09:04 Khitish1995