Hi
Did you not try and just run the unit test through visual studio? I’m not sure why you would need to create a console project? I’ll send the license shortly. Did you use the same version, version 17.9? My stack trace is below after running the unit test through visual studio.
Test Name: Generate1000Documents
Test FullName: AsposeTester.UnitTest1.Generate1000Documents
Test Source: c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs : line 73
Test Outcome: Failed
Test Duration: 0:00:00.2776534
Result Message:
Assert.Fail failed. Exception: System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101
at AsposeTester.UnitTest1.<>c__DisplayClass6.b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.<ForWorker>b__1() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Func
4 bodyWithLocal, Func1 localInit, Action
1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action1 body) at AsposeTester.UnitTest1.Generate1000Documents() in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 83 ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at .(Stream ) at .(String , Assembly ) at Aspose.Pdf.License.SetLicense(String licenseName) at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101 at AsposeTester.UnitTest1.<>c__DisplayClass6.<Generate1000Documents>b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85 at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<—
—> (Inner Exception #1) System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101
at AsposeTester.UnitTest1.<>c__DisplayClass6.b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<—
—> (Inner Exception #2) System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101
at AsposeTester.UnitTest1.<>c__DisplayClass6.b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<—
—> (Inner Exception #3) System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101
at AsposeTester.UnitTest1.<>c__DisplayClass6.b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<—
—> (Inner Exception #4) System.NullReferenceException: Object reference not set to an instance of an object.
at .(Stream )
at .(String , Assembly )
at Aspose.Pdf.License.SetLicense(String licenseName)
at AsposeTester.UnitTest1.PDFGenerator(XmlDocument xmlDoc) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 101
at AsposeTester.UnitTest1.<>c__DisplayClass6.b__4(Int32 i) in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 85
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<—
Result StackTrace: at AsposeTester.UnitTest1.Generate1000Documents() in c:\Users\daverobinson\Documents\Visual Studio 2012\Projects\AsposeTester\AsposeTester\UnitTest1.cs:line 92
Thanks
Dave