Elastic.Apm.Ingest, new PayloadSender implementation #343
0 passed, 5 failed and 0 skipped
❌ junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
5 tests were completed in 47s with 0 passed, 5 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Elastic.Apm.AspNetFullFramework.Tests.dll | 5❌ | 47s |
❌ Elastic.Apm.AspNetFullFramework.Tests.dll
Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })
Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })
Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... })
Expected response.StatusCode to be 200, but found InternalServerError.
❌ CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... })
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, ... })
Expected response.StatusCode to be 404, but found InternalServerError.
Annotations
Check failure on line 0 in junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / IIS Tests Summary
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
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 322
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 328
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 291
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> [2023-09-11 09:10:34.563 +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> [2023-09-11 09:11:12.390 +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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)<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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)]
Elastic APM .NET Tests> 1> Xunit>
Elastic APM .NET Tests> 1> Xunit> [FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)]
Elastic APM .NET Tests> 1> Xunit> Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +0
Elastic APM .NET Tests> 1> Xunit> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +218
Elastic APM .NET Tests> 1> Xunit> System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +36
Elastic APM .NET Tests> 1> Xunit> System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +121
Elastic APM .NET Tests> 1> Xunit> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
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.9176.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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)
Elastic APM .NET Tests> 1> Xunit> [FileLoadException]: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)
Elastic APM .NET Tests> 1> Xunit> at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e)
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
Elastic APM .NET Tests> 1> Xunit> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Elastic APM .NET Tests> 1> Xunit> -->
Elastic APM .NET Tests> 1> Xunit> [2023-09-11 09:11:15.085 +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-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / IIS Tests Summary
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
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 322
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 328
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 291
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> [2023-09-11 09:11:15.097 +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> [2023-09-11 09:11:18.963 +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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)<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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)]
Elastic APM .NET Tests> 2> Xunit>
Elastic APM .NET Tests> 2> Xunit> [FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)]
Elastic APM .NET Tests> 2> Xunit> Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +0
Elastic APM .NET Tests> 2> Xunit> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +218
Elastic APM .NET Tests> 2> Xunit> System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +36
Elastic APM .NET Tests> 2> Xunit> System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +121
Elastic APM .NET Tests> 2> Xunit> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
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.9176.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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)
Elastic APM .NET Tests> 2> Xunit> [FileLoadException]: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)
Elastic APM .NET Tests> 2> Xunit> at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e)
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
Elastic APM .NET Tests> 2> Xunit> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Elastic APM .NET Tests> 2> Xunit> -->
Elastic APM .NET Tests> 2> Xunit> [2023-09-11 09:11:21.427 +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-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / IIS Tests Summary
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
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.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 322
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 328
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 291
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> [2023-09-11 09:11:21.428 +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> [2023-09-11 09:11:24.794 +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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)<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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)]
Elastic APM .NET Tests> 3> Xunit>
Elastic APM .NET Tests> 3> Xunit> [FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)]
Elastic APM .NET Tests> 3> Xunit> Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +0
Elastic APM .NET Tests> 3> Xunit> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +218
Elastic APM .NET Tests> 3> Xunit> System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +36
Elastic APM .NET Tests> 3> Xunit> System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +121
Elastic APM .NET Tests> 3> Xunit> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
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.9176.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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)
Elastic APM .NET Tests> 3> Xunit> [FileLoadException]: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)
Elastic APM .NET Tests> 3> Xunit> at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e)
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
Elastic APM .NET Tests> 3> Xunit> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Elastic APM .NET Tests> 3> Xunit> -->
Elastic APM .NET Tests> 3> Xunit> [2023-09-11 09:11:27.054 +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-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / IIS Tests Summary
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePa...
Failed test found in:
junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
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 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 291
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> [2023-09-11 09:11:27.055 +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> [2023-09-11 09:11:32.697 +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-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
github-actions / IIS Tests Summary
Elastic.Apm.AspNetFullFramework.Tests.dll ► Elastic.Apm.AspNetFullFramework.Tests.CustomServiceNodeNameSetViaSettings ► CustomServiceNodeNameSetViaSettings.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePa...
Failed test found in:
junit-NETCoreApp70-Elastic.Apm.AspNetFullFramework.Tests.xml
Error:
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.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 322
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 328
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 291
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> [2023-09-11 09:11:32.698 +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> [2023-09-11 09:11:35.948 +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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)</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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)<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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)]
Elastic APM .NET Tests> 5> Xunit>
Elastic APM .NET Tests> 5> Xunit> [FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)]
Elastic APM .NET Tests> 5> Xunit> Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e) +0
Elastic APM .NET Tests> 5> Xunit> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +218
Elastic APM .NET Tests> 5> Xunit> System.Web.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0() +36
Elastic APM .NET Tests> 5> Xunit> System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +121
Elastic APM .NET Tests> 5> Xunit> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +94
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.9176.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 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, 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)
Elastic APM .NET Tests> 5> Xunit> [FileLoadException]: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=5.0.0.0, 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)
Elastic APM .NET Tests> 5> Xunit> at Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule.Application_BeginRequest(Object sender, EventArgs e)
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpApplication.<>c__DisplayClass285_0.<ExecuteStepImpl>b__0()
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
Elastic APM .NET Tests> 5> Xunit> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Elastic APM .NET Tests> 5> Xunit> -->
Elastic APM .NET Tests> 5> Xunit> [2023-09-11 09:11:38.235 +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, ... })