Move to nuget central package management #1011
0 passed, 5 failed and 0 skipped
❌ junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
5 tests were completed in 19s with 0 passed, 5 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Elastic.Apm.AspNetFullFramework.Tests.dll | 5❌ | 19s |
❌ Elastic.Apm.AspNetFullFramework.Tests.dll
Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ··· })
failure: Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ··· })
failure: Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ··· })
failure: Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ··· })
failure: System.InvalidOperationException : The given header was not found.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ··· })
failure: Expected response.StatusCode to be 404, but found InternalServerError.
Annotations
Check failure on line 0 in junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / Test Repot -iis
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
failure: Expected response.StatusCode to be 200, but found InternalServerError.
Raw output
Expected response.StatusCode to be 200, but found InternalServerError.
Stack Trace:
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 325
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 331
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendRequestToSampleAppAndVerifyResponse(HttpMethod httpMethod, Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders, HttpContent httpContent) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 294
at Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(SampleAppUrlPathData sampleAppUrlPathData) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\CustomServiceNodeNameViaSettings.cs:line 31
--- End of stack trace from previous location ---
Standard Output:
Elastic APM .NET Tests> 1> Xunit> [2024-10-22 13:32:55.871 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ··· })...
Elastic APM .NET Tests> 1> Xunit> [2024-10-22 13:33:18.004 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 200, but found InternalServerError.. Response content:
Elastic APM .NET Tests> 1> Xunit> <!DOCTYPE html>
Elastic APM .NET Tests> 1> Xunit> <html>
Elastic APM .NET Tests> 1> Xunit> <head>
Elastic APM .NET Tests> 1> Xunit> <title>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</title>
Elastic APM .NET Tests> 1> Xunit> <meta name="viewport" content="width=device-width" />
Elastic APM .NET Tests> 1> Xunit> <style>
Elastic APM .NET Tests> 1> Xunit> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
Elastic APM .NET Tests> 1> Xunit> p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
Elastic APM .NET Tests> 1> Xunit> b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
Elastic APM .NET Tests> 1> Xunit> H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
Elastic APM .NET Tests> 1> Xunit> H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
Elastic APM .NET Tests> 1> Xunit> pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
Elastic APM .NET Tests> 1> Xunit> .marker {font-weight: bold; color: black;text-decoration: none;}
Elastic APM .NET Tests> 1> Xunit> .version {color: gray;}
Elastic APM .NET Tests> 1> Xunit> .error {margin-bottom: 10px;}
Elastic APM .NET Tests> 1> Xunit> .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
Elastic APM .NET Tests> 1> Xunit> @media screen and (max-width: 639px) {
Elastic APM .NET Tests> 1> Xunit> pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
Elastic APM .NET Tests> 1> Xunit> }
Elastic APM .NET Tests> 1> Xunit> @media screen and (max-width: 479px) {
Elastic APM .NET Tests> 1> Xunit> pre { width: 280px; }
Elastic APM .NET Tests> 1> Xunit> }
Elastic APM .NET Tests> 1> Xunit> </style>
Elastic APM .NET Tests> 1> Xunit> </head>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <body bgcolor="white">
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <h2> <i>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</i> </h2></span>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <br><br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br><br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b>Source Error:</b> <br><br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 1> Xunit> <tr>
Elastic APM .NET Tests> 1> Xunit> <td>
Elastic APM .NET Tests> 1> Xunit> <code>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </code>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> </td>
Elastic APM .NET Tests> 1> Xunit> </tr>
Elastic APM .NET Tests> 1> Xunit> </table>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json' could not be loaded.<br><br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 1> Xunit> <tr>
Elastic APM .NET Tests> 1> Xunit> <td>
Elastic APM .NET Tests> 1> Xunit> <code><pre>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> WRN: Assembly binding logging is turned OFF.
Elastic APM .NET Tests> 1> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Elastic APM .NET Tests> 1> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
Elastic APM .NET Tests> 1> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Elastic APM .NET Tests> 1> Xunit> </pre> </code>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> </td>
Elastic APM .NET Tests> 1> Xunit> </tr>
Elastic APM .NET Tests> 1> Xunit> </table>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b>Stack Trace:</b> <br><br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 1> Xunit> <tr>
Elastic APM .NET Tests> 1> Xunit> <td>
Elastic APM .NET Tests> 1> Xunit> <code><pre>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 1> Xunit> System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
Elastic APM .NET Tests> 1> Xunit> System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +232
Elastic APM .NET Tests> 1> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +113
Elastic APM .NET Tests> 1> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +23
Elastic APM .NET Tests> 1> Xunit> System.Reflection.Assembly.Load(String assemblyString) +35
Elastic APM .NET Tests> 1> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> [ConfigurationErrorsException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 1> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
Elastic APM .NET Tests> 1> Xunit> System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
Elastic APM .NET Tests> 1> Xunit> System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
Elastic APM .NET Tests> 1> Xunit> System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +287
Elastic APM .NET Tests> 1> Xunit> System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +69
Elastic APM .NET Tests> 1> Xunit> System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
Elastic APM .NET Tests> 1> Xunit> System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
Elastic APM .NET Tests> 1> Xunit> System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +854
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> [HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 1> Xunit> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
Elastic APM .NET Tests> 1> Xunit> System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
Elastic APM .NET Tests> 1> Xunit> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +719
Elastic APM .NET Tests> 1> Xunit> </pre> </code>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> </td>
Elastic APM .NET Tests> 1> Xunit> </tr>
Elastic APM .NET Tests> 1> Xunit> </table>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <br>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <hr width=100% size=1 color=silver>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9277.0
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> </font>
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> </body>
Elastic APM .NET Tests> 1> Xunit> </html>
Elastic APM .NET Tests> 1> Xunit> <!--
Elastic APM .NET Tests> 1> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 1> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 1> Xunit> at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 1> Xunit> at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 1> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
Elastic APM .NET Tests> 1> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
Elastic APM .NET Tests> 1> Xunit> at System.Reflection.Assembly.Load(String assemblyString)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 1> Xunit> [ConfigurationErrorsException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
Elastic APM .NET Tests> 1> Xunit> at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
Elastic APM .NET Tests> 1> Xunit> at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
Elastic APM .NET Tests> 1> Xunit> at System.Web.Compilation.BuildManager.ExecutePreAppStart()
Elastic APM .NET Tests> 1> Xunit> at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Elastic APM .NET Tests> 1> Xunit> [HttpException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Elastic APM .NET Tests> 1> Xunit> -->
Elastic APM .NET Tests> 1> Xunit> [2024-10-22 13:33:19.479 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ··· })
Check failure on line 0 in junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / Test Repot -iis
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
failure: Expected response.StatusCode to be 200, but found InternalServerError.
Raw output
Expected response.StatusCode to be 200, but found InternalServerError.
Stack Trace:
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 325
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 331
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendRequestToSampleAppAndVerifyResponse(HttpMethod httpMethod, Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders, HttpContent httpContent) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 294
at Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(SampleAppUrlPathData sampleAppUrlPathData) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\CustomServiceNodeNameViaSettings.cs:line 31
--- End of stack trace from previous location ---
Standard Output:
Elastic APM .NET Tests> 2> Xunit> [2024-10-22 13:33:19.485 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ··· })...
Elastic APM .NET Tests> 2> Xunit> [2024-10-22 13:33:21.110 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 200, but found InternalServerError.. Response content:
Elastic APM .NET Tests> 2> Xunit> <!DOCTYPE html>
Elastic APM .NET Tests> 2> Xunit> <html>
Elastic APM .NET Tests> 2> Xunit> <head>
Elastic APM .NET Tests> 2> Xunit> <title>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</title>
Elastic APM .NET Tests> 2> Xunit> <meta name="viewport" content="width=device-width" />
Elastic APM .NET Tests> 2> Xunit> <style>
Elastic APM .NET Tests> 2> Xunit> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
Elastic APM .NET Tests> 2> Xunit> p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
Elastic APM .NET Tests> 2> Xunit> b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
Elastic APM .NET Tests> 2> Xunit> H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
Elastic APM .NET Tests> 2> Xunit> H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
Elastic APM .NET Tests> 2> Xunit> pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
Elastic APM .NET Tests> 2> Xunit> .marker {font-weight: bold; color: black;text-decoration: none;}
Elastic APM .NET Tests> 2> Xunit> .version {color: gray;}
Elastic APM .NET Tests> 2> Xunit> .error {margin-bottom: 10px;}
Elastic APM .NET Tests> 2> Xunit> .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
Elastic APM .NET Tests> 2> Xunit> @media screen and (max-width: 639px) {
Elastic APM .NET Tests> 2> Xunit> pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
Elastic APM .NET Tests> 2> Xunit> }
Elastic APM .NET Tests> 2> Xunit> @media screen and (max-width: 479px) {
Elastic APM .NET Tests> 2> Xunit> pre { width: 280px; }
Elastic APM .NET Tests> 2> Xunit> }
Elastic APM .NET Tests> 2> Xunit> </style>
Elastic APM .NET Tests> 2> Xunit> </head>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <body bgcolor="white">
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <h2> <i>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</i> </h2></span>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <br><br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br><br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b>Source Error:</b> <br><br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 2> Xunit> <tr>
Elastic APM .NET Tests> 2> Xunit> <td>
Elastic APM .NET Tests> 2> Xunit> <code>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </code>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> </td>
Elastic APM .NET Tests> 2> Xunit> </tr>
Elastic APM .NET Tests> 2> Xunit> </table>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json' could not be loaded.<br><br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 2> Xunit> <tr>
Elastic APM .NET Tests> 2> Xunit> <td>
Elastic APM .NET Tests> 2> Xunit> <code><pre>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> WRN: Assembly binding logging is turned OFF.
Elastic APM .NET Tests> 2> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Elastic APM .NET Tests> 2> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
Elastic APM .NET Tests> 2> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Elastic APM .NET Tests> 2> Xunit> </pre> </code>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> </td>
Elastic APM .NET Tests> 2> Xunit> </tr>
Elastic APM .NET Tests> 2> Xunit> </table>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b>Stack Trace:</b> <br><br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 2> Xunit> <tr>
Elastic APM .NET Tests> 2> Xunit> <td>
Elastic APM .NET Tests> 2> Xunit> <code><pre>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 2> Xunit> System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
Elastic APM .NET Tests> 2> Xunit> System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +232
Elastic APM .NET Tests> 2> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +113
Elastic APM .NET Tests> 2> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +23
Elastic APM .NET Tests> 2> Xunit> System.Reflection.Assembly.Load(String assemblyString) +35
Elastic APM .NET Tests> 2> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> [ConfigurationErrorsException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 2> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
Elastic APM .NET Tests> 2> Xunit> System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
Elastic APM .NET Tests> 2> Xunit> System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
Elastic APM .NET Tests> 2> Xunit> System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +287
Elastic APM .NET Tests> 2> Xunit> System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +69
Elastic APM .NET Tests> 2> Xunit> System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
Elastic APM .NET Tests> 2> Xunit> System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
Elastic APM .NET Tests> 2> Xunit> System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +854
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> [HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 2> Xunit> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
Elastic APM .NET Tests> 2> Xunit> System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
Elastic APM .NET Tests> 2> Xunit> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +719
Elastic APM .NET Tests> 2> Xunit> </pre> </code>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> </td>
Elastic APM .NET Tests> 2> Xunit> </tr>
Elastic APM .NET Tests> 2> Xunit> </table>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <br>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <hr width=100% size=1 color=silver>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9277.0
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> </font>
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> </body>
Elastic APM .NET Tests> 2> Xunit> </html>
Elastic APM .NET Tests> 2> Xunit> <!--
Elastic APM .NET Tests> 2> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 2> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 2> Xunit> at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 2> Xunit> at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 2> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
Elastic APM .NET Tests> 2> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
Elastic APM .NET Tests> 2> Xunit> at System.Reflection.Assembly.Load(String assemblyString)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 2> Xunit> [ConfigurationErrorsException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
Elastic APM .NET Tests> 2> Xunit> at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
Elastic APM .NET Tests> 2> Xunit> at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
Elastic APM .NET Tests> 2> Xunit> at System.Web.Compilation.BuildManager.ExecutePreAppStart()
Elastic APM .NET Tests> 2> Xunit> at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Elastic APM .NET Tests> 2> Xunit> [HttpException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Elastic APM .NET Tests> 2> Xunit> -->
Elastic APM .NET Tests> 2> Xunit> [2024-10-22 13:33:22.369 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ··· })
Check failure on line 0 in junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / Test Repot -iis
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
failure: Expected response.StatusCode to be 200, but found InternalServerError.
Raw output
Expected response.StatusCode to be 200, but found InternalServerError.
Stack Trace:
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 325
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 331
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendRequestToSampleAppAndVerifyResponse(HttpMethod httpMethod, Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders, HttpContent httpContent) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 294
at Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(SampleAppUrlPathData sampleAppUrlPathData) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\CustomServiceNodeNameViaSettings.cs:line 31
--- End of stack trace from previous location ---
Standard Output:
Elastic APM .NET Tests> 3> Xunit> [2024-10-22 13:33:22.371 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ··· })...
Elastic APM .NET Tests> 3> Xunit> [2024-10-22 13:33:23.894 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 200, but found InternalServerError.. Response content:
Elastic APM .NET Tests> 3> Xunit> <!DOCTYPE html>
Elastic APM .NET Tests> 3> Xunit> <html>
Elastic APM .NET Tests> 3> Xunit> <head>
Elastic APM .NET Tests> 3> Xunit> <title>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</title>
Elastic APM .NET Tests> 3> Xunit> <meta name="viewport" content="width=device-width" />
Elastic APM .NET Tests> 3> Xunit> <style>
Elastic APM .NET Tests> 3> Xunit> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
Elastic APM .NET Tests> 3> Xunit> p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
Elastic APM .NET Tests> 3> Xunit> b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
Elastic APM .NET Tests> 3> Xunit> H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
Elastic APM .NET Tests> 3> Xunit> H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
Elastic APM .NET Tests> 3> Xunit> pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
Elastic APM .NET Tests> 3> Xunit> .marker {font-weight: bold; color: black;text-decoration: none;}
Elastic APM .NET Tests> 3> Xunit> .version {color: gray;}
Elastic APM .NET Tests> 3> Xunit> .error {margin-bottom: 10px;}
Elastic APM .NET Tests> 3> Xunit> .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
Elastic APM .NET Tests> 3> Xunit> @media screen and (max-width: 639px) {
Elastic APM .NET Tests> 3> Xunit> pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
Elastic APM .NET Tests> 3> Xunit> }
Elastic APM .NET Tests> 3> Xunit> @media screen and (max-width: 479px) {
Elastic APM .NET Tests> 3> Xunit> pre { width: 280px; }
Elastic APM .NET Tests> 3> Xunit> }
Elastic APM .NET Tests> 3> Xunit> </style>
Elastic APM .NET Tests> 3> Xunit> </head>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <body bgcolor="white">
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <h2> <i>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</i> </h2></span>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <br><br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br><br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b>Source Error:</b> <br><br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 3> Xunit> <tr>
Elastic APM .NET Tests> 3> Xunit> <td>
Elastic APM .NET Tests> 3> Xunit> <code>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </code>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> </td>
Elastic APM .NET Tests> 3> Xunit> </tr>
Elastic APM .NET Tests> 3> Xunit> </table>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json' could not be loaded.<br><br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 3> Xunit> <tr>
Elastic APM .NET Tests> 3> Xunit> <td>
Elastic APM .NET Tests> 3> Xunit> <code><pre>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> WRN: Assembly binding logging is turned OFF.
Elastic APM .NET Tests> 3> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Elastic APM .NET Tests> 3> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
Elastic APM .NET Tests> 3> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Elastic APM .NET Tests> 3> Xunit> </pre> </code>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> </td>
Elastic APM .NET Tests> 3> Xunit> </tr>
Elastic APM .NET Tests> 3> Xunit> </table>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b>Stack Trace:</b> <br><br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 3> Xunit> <tr>
Elastic APM .NET Tests> 3> Xunit> <td>
Elastic APM .NET Tests> 3> Xunit> <code><pre>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 3> Xunit> System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
Elastic APM .NET Tests> 3> Xunit> System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +232
Elastic APM .NET Tests> 3> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +113
Elastic APM .NET Tests> 3> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +23
Elastic APM .NET Tests> 3> Xunit> System.Reflection.Assembly.Load(String assemblyString) +35
Elastic APM .NET Tests> 3> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> [ConfigurationErrorsException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 3> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
Elastic APM .NET Tests> 3> Xunit> System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
Elastic APM .NET Tests> 3> Xunit> System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
Elastic APM .NET Tests> 3> Xunit> System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +287
Elastic APM .NET Tests> 3> Xunit> System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +69
Elastic APM .NET Tests> 3> Xunit> System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
Elastic APM .NET Tests> 3> Xunit> System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
Elastic APM .NET Tests> 3> Xunit> System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +854
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> [HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 3> Xunit> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
Elastic APM .NET Tests> 3> Xunit> System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
Elastic APM .NET Tests> 3> Xunit> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +719
Elastic APM .NET Tests> 3> Xunit> </pre> </code>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> </td>
Elastic APM .NET Tests> 3> Xunit> </tr>
Elastic APM .NET Tests> 3> Xunit> </table>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <br>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <hr width=100% size=1 color=silver>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9277.0
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> </font>
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> </body>
Elastic APM .NET Tests> 3> Xunit> </html>
Elastic APM .NET Tests> 3> Xunit> <!--
Elastic APM .NET Tests> 3> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 3> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 3> Xunit> at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 3> Xunit> at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 3> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
Elastic APM .NET Tests> 3> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
Elastic APM .NET Tests> 3> Xunit> at System.Reflection.Assembly.Load(String assemblyString)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 3> Xunit> [ConfigurationErrorsException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
Elastic APM .NET Tests> 3> Xunit> at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
Elastic APM .NET Tests> 3> Xunit> at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
Elastic APM .NET Tests> 3> Xunit> at System.Web.Compilation.BuildManager.ExecutePreAppStart()
Elastic APM .NET Tests> 3> Xunit> at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Elastic APM .NET Tests> 3> Xunit> [HttpException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Elastic APM .NET Tests> 3> Xunit> -->
Elastic APM .NET Tests> 3> Xunit> [2024-10-22 13:33:26.146 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ··· })
Check failure on line 0 in junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / Test Repot -iis
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePa...
Failed test found in:
junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
failure: System.InvalidOperationException : The given header was not found.
Raw output
System.InvalidOperationException : The given header was not found.
Stack Trace:
at System.Net.Http.Headers.HttpHeaders.GetValues(HeaderDescriptor descriptor)
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 334
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendRequestToSampleAppAndVerifyResponse(HttpMethod httpMethod, Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders, HttpContent httpContent) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 294
at Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(SampleAppUrlPathData sampleAppUrlPathData) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\CustomServiceNodeNameViaSettings.cs:line 31
--- End of stack trace from previous location ---
Standard Output:
Elastic APM .NET Tests> 4> Xunit> [2024-10-22 13:33:26.147 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ··· })...
Elastic APM .NET Tests> 4> Xunit> [2024-10-22 13:33:28.955 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ··· })
Check failure on line 0 in junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / Test Repot -iis
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp80-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
failure: Expected response.StatusCode to be 404, but found InternalServerError.
Raw output
Expected response.StatusCode to be 404, but found InternalServerError.
Stack Trace:
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions.Be(Object expected, String because, Object[] becauseArgs)
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 325
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 331
at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendRequestToSampleAppAndVerifyResponse(HttpMethod httpMethod, Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders, HttpContent httpContent) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 294
at Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(SampleAppUrlPathData sampleAppUrlPathData) in D:\a\apm-agent-dotnet\apm-agent-dotnet\test\iis\Elastic.Apm.AspNetFullFramework.Tests\CustomServiceNodeNameViaSettings.cs:line 31
--- End of stack trace from previous location ---
Standard Output:
Elastic APM .NET Tests> 5> Xunit> [2024-10-22 13:33:28.956 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ··· })...
Elastic APM .NET Tests> 5> Xunit> [2024-10-22 13:33:30.456 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 404, but found InternalServerError.. Response content:
Elastic APM .NET Tests> 5> Xunit> <!DOCTYPE html>
Elastic APM .NET Tests> 5> Xunit> <html>
Elastic APM .NET Tests> 5> Xunit> <head>
Elastic APM .NET Tests> 5> Xunit> <title>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</title>
Elastic APM .NET Tests> 5> Xunit> <meta name="viewport" content="width=device-width" />
Elastic APM .NET Tests> 5> Xunit> <style>
Elastic APM .NET Tests> 5> Xunit> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
Elastic APM .NET Tests> 5> Xunit> p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
Elastic APM .NET Tests> 5> Xunit> b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
Elastic APM .NET Tests> 5> Xunit> H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
Elastic APM .NET Tests> 5> Xunit> H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
Elastic APM .NET Tests> 5> Xunit> pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
Elastic APM .NET Tests> 5> Xunit> .marker {font-weight: bold; color: black;text-decoration: none;}
Elastic APM .NET Tests> 5> Xunit> .version {color: gray;}
Elastic APM .NET Tests> 5> Xunit> .error {margin-bottom: 10px;}
Elastic APM .NET Tests> 5> Xunit> .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
Elastic APM .NET Tests> 5> Xunit> @media screen and (max-width: 639px) {
Elastic APM .NET Tests> 5> Xunit> pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
Elastic APM .NET Tests> 5> Xunit> }
Elastic APM .NET Tests> 5> Xunit> @media screen and (max-width: 479px) {
Elastic APM .NET Tests> 5> Xunit> pre { width: 280px; }
Elastic APM .NET Tests> 5> Xunit> }
Elastic APM .NET Tests> 5> Xunit> </style>
Elastic APM .NET Tests> 5> Xunit> </head>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <body bgcolor="white">
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <h2> <i>Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)</i> </h2></span>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <br><br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)<br><br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b>Source Error:</b> <br><br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 5> Xunit> <tr>
Elastic APM .NET Tests> 5> Xunit> <td>
Elastic APM .NET Tests> 5> Xunit> <code>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </code>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> </td>
Elastic APM .NET Tests> 5> Xunit> </tr>
Elastic APM .NET Tests> 5> Xunit> </table>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json' could not be loaded.<br><br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 5> Xunit> <tr>
Elastic APM .NET Tests> 5> Xunit> <td>
Elastic APM .NET Tests> 5> Xunit> <code><pre>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> WRN: Assembly binding logging is turned OFF.
Elastic APM .NET Tests> 5> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Elastic APM .NET Tests> 5> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
Elastic APM .NET Tests> 5> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Elastic APM .NET Tests> 5> Xunit> </pre> </code>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> </td>
Elastic APM .NET Tests> 5> Xunit> </tr>
Elastic APM .NET Tests> 5> Xunit> </table>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b>Stack Trace:</b> <br><br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <table width=100% bgcolor="#ffffcc">
Elastic APM .NET Tests> 5> Xunit> <tr>
Elastic APM .NET Tests> 5> Xunit> <td>
Elastic APM .NET Tests> 5> Xunit> <code><pre>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> [FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 5> Xunit> System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
Elastic APM .NET Tests> 5> Xunit> System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +232
Elastic APM .NET Tests> 5> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +113
Elastic APM .NET Tests> 5> Xunit> System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +23
Elastic APM .NET Tests> 5> Xunit> System.Reflection.Assembly.Load(String assemblyString) +35
Elastic APM .NET Tests> 5> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> [ConfigurationErrorsException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 5> Xunit> System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
Elastic APM .NET Tests> 5> Xunit> System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
Elastic APM .NET Tests> 5> Xunit> System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
Elastic APM .NET Tests> 5> Xunit> System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +287
Elastic APM .NET Tests> 5> Xunit> System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +69
Elastic APM .NET Tests> 5> Xunit> System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
Elastic APM .NET Tests> 5> Xunit> System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
Elastic APM .NET Tests> 5> Xunit> System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +854
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> [HttpException (0x80004005): Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
Elastic APM .NET Tests> 5> Xunit> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
Elastic APM .NET Tests> 5> Xunit> System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
Elastic APM .NET Tests> 5> Xunit> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +719
Elastic APM .NET Tests> 5> Xunit> </pre> </code>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> </td>
Elastic APM .NET Tests> 5> Xunit> </tr>
Elastic APM .NET Tests> 5> Xunit> </table>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <br>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <hr width=100% size=1 color=silver>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> <b>Version Information:</b> Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.9277.0
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> </font>
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> </body>
Elastic APM .NET Tests> 5> Xunit> </html>
Elastic APM .NET Tests> 5> Xunit> <!--
Elastic APM .NET Tests> 5> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 5> Xunit> [FileLoadException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 5> Xunit> at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 5> Xunit> at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
Elastic APM .NET Tests> 5> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
Elastic APM .NET Tests> 5> Xunit> at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
Elastic APM .NET Tests> 5> Xunit> at System.Reflection.Assembly.Load(String assemblyString)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 5> Xunit> [ConfigurationErrorsException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
Elastic APM .NET Tests> 5> Xunit> at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
Elastic APM .NET Tests> 5> Xunit> at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)
Elastic APM .NET Tests> 5> Xunit> at System.Web.Compilation.BuildManager.ExecutePreAppStart()
Elastic APM .NET Tests> 5> Xunit> at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
Elastic APM .NET Tests> 5> Xunit> [HttpException]: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.3, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Elastic APM .NET Tests> 5> Xunit> -->
Elastic APM .NET Tests> 5> Xunit> [2024-10-22 13:33:31.715 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ··· })