apm-agent-dotnet icon indicating copy to clipboard operation
apm-agent-dotnet copied to clipboard

Bump Newtonsoft.Json from 11.0.2 to 13.0.1 in /sample/AspNetFullFrameworkSampleApp

Open dependabot[bot] opened this issue 2 years ago • 1 comments

Bumps Newtonsoft.Json from 11.0.2 to 13.0.1.

Release notes

Sourced from Newtonsoft.Json's releases.

13.0.1

  • New feature - Add JsonSelectSettings with configuration for a regex timeout
  • Change - Remove portable assemblies from NuGet package
  • Change - JsonReader and JsonSerializer MaxDepth defaults to 64
  • Fix - Fixed throwing missing member error on ignored fields
  • Fix - Fixed various nullable annotations
  • Fix - Fixed annotations not being copied when tokens are cloned
  • Fix - Fixed naming strategy not being used when deserializing dictionary enum keys
  • Fix - Fixed serializing nullable struct dictionaries
  • Fix - Fixed JsonWriter.WriteToken to allow null with string token
  • Fix - Fixed missing error when deserializing JToken with a contract type mismatch
  • Fix - Fixed JTokenWriter when writing comment to an object

12.0.3

  • New feature - Added support for nullable reference types
  • New feature - Added KebabCaseNamingStrategy
  • Change - Package now uses embedded package icon
  • Fix - Fixed bug when merging JToken with itself
  • Fix - Fixed performance of calling ICustomTypeDescriptor.GetProperties
  • Fix - Fixed serializing Enumerable.Empty and empty arrays on .NET Core 3.0
  • Fix - Fixed deserializing some collection types with constructor
  • Fix - Fixed deserializing IImmutableSet to ImmutableHashSet instead of ImmutableSortedSet
  • Fix - Fixed deserializing IImmutableDictionary to ImmutableDictionary instead of ImmutableSortedDictionary
  • Fix - Fixed deserializing into constructors with more than 256 parameters
  • Fix - Fixed hang when deserializing JTokenReader with preceding comment
  • Fix - Fixed JSONPath scanning with nested indexer
  • Fix - Fixed deserializing incomplete JSON object to JObject
  • Fix - Fixed using StringEnumConverter with naming strategy and specified values

12.0.2

  • New feature - Added MissingMemberHandling to JsonObjectAttribute and JsonObjectContract
  • New feature - Added constructor to JTokenReader to specify initial path
  • New feature - Added JsonProperty.IsRequiredSpecified
  • New feature - Added JsonContract.InternalConverter
  • Change - Moved embedded debug symbols in NuGet package to a symbol package on NuGet.org
  • Fix - Fixed deserializing nullable struct collections
  • Fix - Fixed memory link when serializing enums to named values
  • Fix - Fixed error when setting JsonLoadSettings.DuplicatePropertyNameHandling to Replace

12.0.1

  • New feature - Added NuGet package signing
  • New feature - Added Authenticode assembly signing
  • New feature - Added SourceLink support
  • New feature - Added constructors to StringEnumConverter for setting AllowIntegerValue
  • New feature - Added JsonNameTable and JsonTextReader.PropertyNameTable
  • New feature - Added line information to JsonSerializationException
  • New feature - Added JObject.Property overload with a StringComparison
  • New feature - Added JsonMergeSettings.PropertyNameComparison
  • New feature - Added support for multiple Date constructors with JavaScriptDateTimeConverter
  • New feature - Added support for strict equals and strict not equals in JSON Path queries

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

dependabot[bot] avatar Jun 22 '22 22:06 dependabot[bot]

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-08-10T13:02:53.413+0000

  • Duration: 81 min 52 sec

Test stats :test_tube:

Test Results
Failed 100
Passed 8202
Skipped 40
Total 8342

Test errors 100

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     Expected response.StatusCode to be 200, but found InternalServerError. 
    
    Expand to view the stacktrace

     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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 307
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 313
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 276
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(SampleAppUrlPathData sampleAppUrlPathData) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureHeadersConfigDisabledTest.cs:line 25
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 1> Xunit> [2022-08-10 13:30:25.434 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 1> Xunit> [2022-08-10 13:30:38.058 +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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)<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><pre>
        Elastic APM .NET Tests> 1> Xunit>
        Elastic APM .NET Tests> 1> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 1> Xunit> Line 26:
        Elastic APM .NET Tests> 1> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 1> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 1> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</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> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 1> Xunit>             <br><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, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 1> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 1> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 1> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 1> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 1> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 1> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 1> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 1> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 1> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +26
        Elastic APM .NET Tests> 1> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 1> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 1> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 1> Xunit>
        Elastic APM .NET Tests> 1> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 1> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 1> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 1> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 1> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 1> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 1> Xunit>
        Elastic APM .NET Tests> 1> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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) +724
        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>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 1> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 1> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 1> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 1> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 1> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 1> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 1> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 1> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 1> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 1> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 1> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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> [2022-08-10 13:30:39.569 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "", SpansCount = 0, StatusCode = 200, ... }) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     Expected response.StatusCode to be 200, but found InternalServerError. 
    
    Expand to view the stacktrace

     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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 307
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 313
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 276
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(SampleAppUrlPathData sampleAppUrlPathData) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureHeadersConfigDisabledTest.cs:line 25
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 2> Xunit> [2022-08-10 13:30:39.612 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 2> Xunit> [2022-08-10 13:30:42.318 +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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)<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><pre>
        Elastic APM .NET Tests> 2> Xunit>
        Elastic APM .NET Tests> 2> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 2> Xunit> Line 26:
        Elastic APM .NET Tests> 2> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 2> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 2> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</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> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 2> Xunit>             <br><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, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 2> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 2> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 2> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 2> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 2> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 2> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 2> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 2> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 2> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +26
        Elastic APM .NET Tests> 2> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 2> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 2> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 2> Xunit>
        Elastic APM .NET Tests> 2> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 2> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 2> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 2> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 2> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 2> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 2> Xunit>
        Elastic APM .NET Tests> 2> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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) +724
        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>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 2> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 2> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 2> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 2> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 2> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 2> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 2> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 2> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 2> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 2> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 2> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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> [2022-08-10 13:30:43.711 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home", SpansCount = 0, StatusCode = 200, ... }) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     Expected response.StatusCode to be 200, but found InternalServerError. 
    
    Expand to view the stacktrace

     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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 307
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 313
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 276
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(SampleAppUrlPathData sampleAppUrlPathData) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureHeadersConfigDisabledTest.cs:line 25
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 3> Xunit> [2022-08-10 13:30:43.712 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... })...
        Elastic APM .NET Tests> 3> Xunit> [2022-08-10 13:30:45.951 +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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)<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><pre>
        Elastic APM .NET Tests> 3> Xunit>
        Elastic APM .NET Tests> 3> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 3> Xunit> Line 26:
        Elastic APM .NET Tests> 3> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 3> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 3> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</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> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 3> Xunit>             <br><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, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 3> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 3> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 3> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 3> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 3> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 3> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 3> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 3> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 3> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 3> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 3> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 3> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 3> Xunit>
        Elastic APM .NET Tests> 3> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 3> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 3> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 3> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 3> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 3> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 3> Xunit>
        Elastic APM .NET Tests> 3> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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) +724
        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>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 3> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 3> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 3> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 3> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 3> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 3> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 3> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 3> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 3> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 3> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 3> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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> [2022-08-10 13:30:47.233 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 0, Outcome = Success, RelativePath = "Home/Contact", SpansCount = 2, StatusCode = 200, ... }) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     System.InvalidOperationException : The given header was not found. 
    
    Expand to view the stacktrace

     System.InvalidOperationException : The given header was not found.
    Stack Trace:
       at System.Net.Http.Headers.HttpHeaders.GetValues(HeaderDescriptor descriptor)
       at System.Net.Http.Headers.HttpHeaders.GetValues(String name)
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 316
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 276
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(SampleAppUrlPathData sampleAppUrlPathData) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureHeadersConfigDisabledTest.cs:line 25
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 4> Xunit> [2022-08-10 13:30:47.234 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... })...
        Elastic APM .NET Tests> 4> Xunit> [2022-08-10 13:30:51.901 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 2, Outcome = Failure, RelativePath = "Home/CustomSpanThrows", SpansCount = 1, StatusCode = 500, ... }) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureHeadersConfigDisabledTest.Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test – Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest
    Expand to view the error details

     Expected response.StatusCode to be 404, but found InternalServerError. 
    
    Expand to view the stacktrace

     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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 307
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 313
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 276
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(SampleAppUrlPathData sampleAppUrlPathData) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureHeadersConfigDisabledTest.cs:line 25
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 5> Xunit> [2022-08-10 13:30:51.902 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.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> [2022-08-10 13:30:54.116 +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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)</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, Version=6.0.0.0, 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)<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><pre>
        Elastic APM .NET Tests> 5> Xunit>
        Elastic APM .NET Tests> 5> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 5> Xunit> Line 26:
        Elastic APM .NET Tests> 5> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 5> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 5> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</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> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 5> Xunit>             <br><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, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 5> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 5> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 5> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 5> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 5> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 5> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 5> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 5> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 5> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 5> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 5> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 5> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 5> Xunit>
        Elastic APM .NET Tests> 5> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 5> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 5> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 5> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 5> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 5> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 5> Xunit>
        Elastic APM .NET Tests> 5> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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) +724
        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>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.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 &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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 &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 5> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 5> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 5> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 5> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 5> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 5> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 5> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 5> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 5> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 5> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 5> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;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> [2022-08-10 13:30:55.513 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureHeadersConfigDisabledTest.Test(sampleAppUrlPathData: SampleAppUrlPathData { ErrorsCount = 1, Outcome = Success, RelativePath = "dummy_URL_path_to_page_that_does_not_exist", SpansCount = 0, StatusCode = 404, ... }) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CaptureUserTests.Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal – Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests
    Expand to view the error details

     System.ArgumentNullException : Value cannot be null. (Parameter 'form') 
    
    Expand to view the stacktrace

     System.ArgumentNullException : Value cannot be null. (Parameter 'form')
    Stack Trace:
       at AngleSharp.Html.Dom.FormExtensions.SetValues(IHtmlFormElement form, IDictionary`2 fields, Boolean createMissing)
       at AngleSharp.Html.Dom.FormExtensions.SubmitAsync(IHtmlFormElement form, IDictionary`2 fields, Boolean createMissing)
       at AngleSharp.Html.Dom.FormExtensions.SubmitAsync(IHtmlFormElement form, Object fields)
       at Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CaptureUserTests.cs:line 38
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 6> Xunit> [2022-08-10 13:30:55.521 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal...
        Elastic APM .NET Tests> 6> Xunit> [2022-08-10 13:30:59.547 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CaptureUserTests.User_Should_Contain_Id_And_Email_When_Using_Authenticated_ClaimsPrincipal 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CentralConfigTests+MaxSpansAndSampleRateTests.Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: False) – Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests
    Expand to view the error details

     Expected response.StatusCode to be 201, but found InternalServerError. 
    
    Expand to view the stacktrace

     Expected response.StatusCode to be 201, but found InternalServerError.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 292
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.<>c__DisplayClass8_0.<<TestImpl>g__SendRequestAssertReceivedData|2>d.MoveNext() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 258
    --- End of stack trace from previous location ---
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.TestImpl(IReadOnlyCollection`1 testParamsPerStep, Int32 spansToExecCountForInitialRequest, Nullable`1 maxSpansLocalConfig, Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 230
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.SampleRate_valid_value(Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 118
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 90> Xunit> [2022-08-10 13:36:54.227 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: False)...
        Elastic APM .NET Tests> 90> Xunit> [2022-08-10 13:36:56.592 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 201, but found InternalServerError.. Response content:
        Elastic APM .NET Tests> 90> Xunit> <!DOCTYPE html>
        Elastic APM .NET Tests> 90> Xunit> <html>
        Elastic APM .NET Tests> 90> Xunit>     <head>
        Elastic APM .NET Tests> 90> Xunit>         <title>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</title>
        Elastic APM .NET Tests> 90> Xunit>         <meta name="viewport" content="width=device-width" />
        Elastic APM .NET Tests> 90> Xunit>         <style>
        Elastic APM .NET Tests> 90> Xunit>          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
        Elastic APM .NET Tests> 90> Xunit>          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 90> Xunit>          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 90> Xunit>          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
        Elastic APM .NET Tests> 90> Xunit>          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
        Elastic APM .NET Tests> 90> Xunit>          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
        Elastic APM .NET Tests> 90> Xunit>          .marker {font-weight: bold; color: black;text-decoration: none;}
        Elastic APM .NET Tests> 90> Xunit>          .version {color: gray;}
        Elastic APM .NET Tests> 90> Xunit>          .error {margin-bottom: 10px;}
        Elastic APM .NET Tests> 90> Xunit>          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
        Elastic APM .NET Tests> 90> Xunit>          @media screen and (max-width: 639px) {
        Elastic APM .NET Tests> 90> Xunit>           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
        Elastic APM .NET Tests> 90> Xunit>          }
        Elastic APM .NET Tests> 90> Xunit>          @media screen and (max-width: 479px) {
        Elastic APM .NET Tests> 90> Xunit>           pre { width: 280px; }
        Elastic APM .NET Tests> 90> Xunit>          }
        Elastic APM .NET Tests> 90> Xunit>         </style>
        Elastic APM .NET Tests> 90> Xunit>     </head>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>     <body bgcolor="white">
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <h2> <i>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</i> </h2></span>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> 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> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)<br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b>Source Error:</b> <br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 90> Xunit>                <tr>
        Elastic APM .NET Tests> 90> Xunit>                   <td>
        Elastic APM .NET Tests> 90> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 90> Xunit> Line 26:
        Elastic APM .NET Tests> 90> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 90> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 90> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</pre>                      </code>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>                   </td>
        Elastic APM .NET Tests> 90> Xunit>                </tr>
        Elastic APM .NET Tests> 90> Xunit>             </table>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 90> Xunit>             <br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded.<br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 90> Xunit>                <tr>
        Elastic APM .NET Tests> 90> Xunit>                   <td>
        Elastic APM .NET Tests> 90> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> WRN: Assembly binding logging is turned OFF.
        Elastic APM .NET Tests> 90> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
        Elastic APM .NET Tests> 90> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
        Elastic APM .NET Tests> 90> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
        Elastic APM .NET Tests> 90> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>                   </td>
        Elastic APM .NET Tests> 90> Xunit>                </tr>
        Elastic APM .NET Tests> 90> Xunit>             </table>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b>Stack Trace:</b> <br><br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 90> Xunit>                <tr>
        Elastic APM .NET Tests> 90> Xunit>                   <td>
        Elastic APM .NET Tests> 90> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 90> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 90> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 90> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 90> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 90> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 90> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 90> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 90> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 90> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 90> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 90> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 90> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 90> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
        Elastic APM .NET Tests> 90> Xunit>    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
        Elastic APM .NET Tests> 90> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>                   </td>
        Elastic APM .NET Tests> 90> Xunit>                </tr>
        Elastic APM .NET Tests> 90> Xunit>             </table>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <br>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <hr width=100% size=1 color=silver>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>             </font>
        Elastic APM .NET Tests> 90> Xunit>
        Elastic APM .NET Tests> 90> Xunit>     </body>
        Elastic APM .NET Tests> 90> Xunit> </html>
        Elastic APM .NET Tests> 90> Xunit> <!--
        Elastic APM .NET Tests> 90> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 90> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 90> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 90> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 90> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 90> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 90> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 90> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 90> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 90> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 90> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 90> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 90> Xunit>    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
        Elastic APM .NET Tests> 90> Xunit> -->
        Elastic APM .NET Tests> 90> Xunit> [2022-08-10 13:36:59.018 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: False) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CentralConfigTests+MaxSpansAndSampleRateTests.Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: True) – Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests
    Expand to view the error details

     Expected response.StatusCode to be 201, but found InternalServerError. 
    
    Expand to view the stacktrace

     Expected response.StatusCode to be 201, but found InternalServerError.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 292
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.<>c__DisplayClass8_0.<<TestImpl>g__SendRequestAssertReceivedData|2>d.MoveNext() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 258
    --- End of stack trace from previous location ---
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.TestImpl(IReadOnlyCollection`1 testParamsPerStep, Int32 spansToExecCountForInitialRequest, Nullable`1 maxSpansLocalConfig, Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 230
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.SampleRate_valid_value(Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 118
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 91> Xunit> [2022-08-10 13:36:59.019 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: True)...
        Elastic APM .NET Tests> 91> Xunit> [2022-08-10 13:37:01.515 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 201, but found InternalServerError.. Response content:
        Elastic APM .NET Tests> 91> Xunit> <!DOCTYPE html>
        Elastic APM .NET Tests> 91> Xunit> <html>
        Elastic APM .NET Tests> 91> Xunit>     <head>
        Elastic APM .NET Tests> 91> Xunit>         <title>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</title>
        Elastic APM .NET Tests> 91> Xunit>         <meta name="viewport" content="width=device-width" />
        Elastic APM .NET Tests> 91> Xunit>         <style>
        Elastic APM .NET Tests> 91> Xunit>          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
        Elastic APM .NET Tests> 91> Xunit>          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 91> Xunit>          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 91> Xunit>          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
        Elastic APM .NET Tests> 91> Xunit>          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
        Elastic APM .NET Tests> 91> Xunit>          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
        Elastic APM .NET Tests> 91> Xunit>          .marker {font-weight: bold; color: black;text-decoration: none;}
        Elastic APM .NET Tests> 91> Xunit>          .version {color: gray;}
        Elastic APM .NET Tests> 91> Xunit>          .error {margin-bottom: 10px;}
        Elastic APM .NET Tests> 91> Xunit>          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
        Elastic APM .NET Tests> 91> Xunit>          @media screen and (max-width: 639px) {
        Elastic APM .NET Tests> 91> Xunit>           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
        Elastic APM .NET Tests> 91> Xunit>          }
        Elastic APM .NET Tests> 91> Xunit>          @media screen and (max-width: 479px) {
        Elastic APM .NET Tests> 91> Xunit>           pre { width: 280px; }
        Elastic APM .NET Tests> 91> Xunit>          }
        Elastic APM .NET Tests> 91> Xunit>         </style>
        Elastic APM .NET Tests> 91> Xunit>     </head>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>     <body bgcolor="white">
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <h2> <i>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</i> </h2></span>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> 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> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)<br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b>Source Error:</b> <br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 91> Xunit>                <tr>
        Elastic APM .NET Tests> 91> Xunit>                   <td>
        Elastic APM .NET Tests> 91> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 91> Xunit> Line 26:
        Elastic APM .NET Tests> 91> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 91> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 91> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</pre>                      </code>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>                   </td>
        Elastic APM .NET Tests> 91> Xunit>                </tr>
        Elastic APM .NET Tests> 91> Xunit>             </table>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 91> Xunit>             <br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded.<br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 91> Xunit>                <tr>
        Elastic APM .NET Tests> 91> Xunit>                   <td>
        Elastic APM .NET Tests> 91> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> WRN: Assembly binding logging is turned OFF.
        Elastic APM .NET Tests> 91> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
        Elastic APM .NET Tests> 91> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
        Elastic APM .NET Tests> 91> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
        Elastic APM .NET Tests> 91> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>                   </td>
        Elastic APM .NET Tests> 91> Xunit>                </tr>
        Elastic APM .NET Tests> 91> Xunit>             </table>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b>Stack Trace:</b> <br><br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 91> Xunit>                <tr>
        Elastic APM .NET Tests> 91> Xunit>                   <td>
        Elastic APM .NET Tests> 91> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 91> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 91> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 91> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 91> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 91> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 91> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 91> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 91> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 91> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 91> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 91> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 91> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 91> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
        Elastic APM .NET Tests> 91> Xunit>    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
        Elastic APM .NET Tests> 91> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>                   </td>
        Elastic APM .NET Tests> 91> Xunit>                </tr>
        Elastic APM .NET Tests> 91> Xunit>             </table>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <br>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <hr width=100% size=1 color=silver>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>             </font>
        Elastic APM .NET Tests> 91> Xunit>
        Elastic APM .NET Tests> 91> Xunit>     </body>
        Elastic APM .NET Tests> 91> Xunit> </html>
        Elastic APM .NET Tests> 91> Xunit> <!--
        Elastic APM .NET Tests> 91> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 91> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 91> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 91> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 91> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 91> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 91> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 91> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 91> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 91> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 91> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 91> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 91> Xunit>    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
        Elastic APM .NET Tests> 91> Xunit> -->
        Elastic APM .NET Tests> 91> Xunit> [2022-08-10 13:37:02.920 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: True) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CentralConfigTests+MaxSpansAndSampleRateTests.Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: null) – Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests
    Expand to view the error details

     Expected response.StatusCode to be 201, but found InternalServerError. 
    
    Expand to view the stacktrace

     Expected response.StatusCode to be 201, but found InternalServerError.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 292
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.<>c__DisplayClass8_0.<<TestImpl>g__SendRequestAssertReceivedData|2>d.MoveNext() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 258
    --- End of stack trace from previous location ---
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.TestImpl(IReadOnlyCollection`1 testParamsPerStep, Int32 spansToExecCountForInitialRequest, Nullable`1 maxSpansLocalConfig, Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 230
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.SampleRate_valid_value(Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 118
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 92> Xunit> [2022-08-10 13:37:02.920 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: null)...
        Elastic APM .NET Tests> 92> Xunit> [2022-08-10 13:37:05.387 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 201, but found InternalServerError.. Response content:
        Elastic APM .NET Tests> 92> Xunit> <!DOCTYPE html>
        Elastic APM .NET Tests> 92> Xunit> <html>
        Elastic APM .NET Tests> 92> Xunit>     <head>
        Elastic APM .NET Tests> 92> Xunit>         <title>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</title>
        Elastic APM .NET Tests> 92> Xunit>         <meta name="viewport" content="width=device-width" />
        Elastic APM .NET Tests> 92> Xunit>         <style>
        Elastic APM .NET Tests> 92> Xunit>          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
        Elastic APM .NET Tests> 92> Xunit>          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 92> Xunit>          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 92> Xunit>          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
        Elastic APM .NET Tests> 92> Xunit>          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
        Elastic APM .NET Tests> 92> Xunit>          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
        Elastic APM .NET Tests> 92> Xunit>          .marker {font-weight: bold; color: black;text-decoration: none;}
        Elastic APM .NET Tests> 92> Xunit>          .version {color: gray;}
        Elastic APM .NET Tests> 92> Xunit>          .error {margin-bottom: 10px;}
        Elastic APM .NET Tests> 92> Xunit>          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
        Elastic APM .NET Tests> 92> Xunit>          @media screen and (max-width: 639px) {
        Elastic APM .NET Tests> 92> Xunit>           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
        Elastic APM .NET Tests> 92> Xunit>          }
        Elastic APM .NET Tests> 92> Xunit>          @media screen and (max-width: 479px) {
        Elastic APM .NET Tests> 92> Xunit>           pre { width: 280px; }
        Elastic APM .NET Tests> 92> Xunit>          }
        Elastic APM .NET Tests> 92> Xunit>         </style>
        Elastic APM .NET Tests> 92> Xunit>     </head>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>     <body bgcolor="white">
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <h2> <i>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</i> </h2></span>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> 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> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)<br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b>Source Error:</b> <br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 92> Xunit>                <tr>
        Elastic APM .NET Tests> 92> Xunit>                   <td>
        Elastic APM .NET Tests> 92> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 92> Xunit> Line 26:
        Elastic APM .NET Tests> 92> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 92> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 92> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</pre>                      </code>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>                   </td>
        Elastic APM .NET Tests> 92> Xunit>                </tr>
        Elastic APM .NET Tests> 92> Xunit>             </table>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 92> Xunit>             <br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded.<br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 92> Xunit>                <tr>
        Elastic APM .NET Tests> 92> Xunit>                   <td>
        Elastic APM .NET Tests> 92> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> WRN: Assembly binding logging is turned OFF.
        Elastic APM .NET Tests> 92> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
        Elastic APM .NET Tests> 92> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
        Elastic APM .NET Tests> 92> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
        Elastic APM .NET Tests> 92> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>                   </td>
        Elastic APM .NET Tests> 92> Xunit>                </tr>
        Elastic APM .NET Tests> 92> Xunit>             </table>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b>Stack Trace:</b> <br><br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 92> Xunit>                <tr>
        Elastic APM .NET Tests> 92> Xunit>                   <td>
        Elastic APM .NET Tests> 92> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 92> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 92> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 92> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 92> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 92> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 92> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 92> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 92> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 92> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 92> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 92> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 92> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 92> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
        Elastic APM .NET Tests> 92> Xunit>    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
        Elastic APM .NET Tests> 92> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>                   </td>
        Elastic APM .NET Tests> 92> Xunit>                </tr>
        Elastic APM .NET Tests> 92> Xunit>             </table>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <br>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <hr width=100% size=1 color=silver>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>             </font>
        Elastic APM .NET Tests> 92> Xunit>
        Elastic APM .NET Tests> 92> Xunit>     </body>
        Elastic APM .NET Tests> 92> Xunit> </html>
        Elastic APM .NET Tests> 92> Xunit> <!--
        Elastic APM .NET Tests> 92> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 92> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 92> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 92> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 92> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 92> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 92> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 92> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 92> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 92> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 92> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 92> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 92> Xunit>    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
        Elastic APM .NET Tests> 92> Xunit> -->
        Elastic APM .NET Tests> 92> Xunit> [2022-08-10 13:37:06.796 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.SampleRate_valid_value(isSampledLocalConfig: null) 
    
Initializing / Parallel / Windows .NET Framework / IIS Tests / CentralConfigTests+MaxSpansAndSampleRateTests.Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.Combination_of_both_options(maxSpansLocalConfig: 10, isSampledLocalConfig: False) – Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests
    Expand to view the error details

     Expected response.StatusCode to be 201, but found InternalServerError. 
    
    Expand to view the stacktrace

     Expected response.StatusCode to be 201, but found InternalServerError.
    Stack Trace:
       at FluentAssertions.Execution.XUnit2TestFramework.Throw(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 C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponseImpl(HttpRequestMessage httpRequestMessage, Int32 expectedStatusCode) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 341
       at Elastic.Apm.AspNetFullFramework.Tests.TestsBase.SendGetRequestToSampleAppAndVerifyResponse(Uri uri, Int32 expectedStatusCode, Boolean timeHttpCall, Boolean addTraceContextHeaders) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\TestsBase.cs:line 292
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.<>c__DisplayClass8_0.<<TestImpl>g__SendRequestAssertReceivedData|2>d.MoveNext() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 258
    --- End of stack trace from previous location ---
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.TestImpl(IReadOnlyCollection`1 testParamsPerStep, Int32 spansToExecCountForInitialRequest, Nullable`1 maxSpansLocalConfig, Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 230
       at Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests.MaxSpansAndSampleRateTests.Combination_of_both_options(Nullable`1 maxSpansLocalConfig, Nullable`1 isSampledLocalConfig) in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\test\Elastic.Apm.AspNetFullFramework.Tests\CentralConfigTests.cs:line 168
    --- End of stack trace from previous location ---
    Standard Output:
        Elastic APM .NET Tests> 93> Xunit> [2022-08-10 13:37:06.798 +00:00][Info] - {LoggingTestBase} Starting test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.Combination_of_both_options(maxSpansLocalConfig: 10, isSampledLocalConfig: False)...
        Elastic APM .NET Tests> 93> Xunit> [2022-08-10 13:37:09.273 +00:00][Error] - {AspNetFullFramework.Tests.TestsBase} Expected response.StatusCode to be 201, but found InternalServerError.. Response content:
        Elastic APM .NET Tests> 93> Xunit> <!DOCTYPE html>
        Elastic APM .NET Tests> 93> Xunit> <html>
        Elastic APM .NET Tests> 93> Xunit>     <head>
        Elastic APM .NET Tests> 93> Xunit>         <title>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</title>
        Elastic APM .NET Tests> 93> Xunit>         <meta name="viewport" content="width=device-width" />
        Elastic APM .NET Tests> 93> Xunit>         <style>
        Elastic APM .NET Tests> 93> Xunit>          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
        Elastic APM .NET Tests> 93> Xunit>          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 93> Xunit>          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
        Elastic APM .NET Tests> 93> Xunit>          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
        Elastic APM .NET Tests> 93> Xunit>          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
        Elastic APM .NET Tests> 93> Xunit>          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
        Elastic APM .NET Tests> 93> Xunit>          .marker {font-weight: bold; color: black;text-decoration: none;}
        Elastic APM .NET Tests> 93> Xunit>          .version {color: gray;}
        Elastic APM .NET Tests> 93> Xunit>          .error {margin-bottom: 10px;}
        Elastic APM .NET Tests> 93> Xunit>          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; }
        Elastic APM .NET Tests> 93> Xunit>          @media screen and (max-width: 639px) {
        Elastic APM .NET Tests> 93> Xunit>           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
        Elastic APM .NET Tests> 93> Xunit>          }
        Elastic APM .NET Tests> 93> Xunit>          @media screen and (max-width: 479px) {
        Elastic APM .NET Tests> 93> Xunit>           pre { width: 280px; }
        Elastic APM .NET Tests> 93> Xunit>          }
        Elastic APM .NET Tests> 93> Xunit>         </style>
        Elastic APM .NET Tests> 93> Xunit>     </head>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>     <body bgcolor="white">
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <span><H1>Server Error in '/Elastic.Apm.AspNetFullFramework.Tests.SampleApp' Application.<hr width=100% size=1 color=silver></H1>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <h2> <i>Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)</i> </h2></span>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> 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> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b> Exception Details: </b>System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)<br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b>Source Error:</b> <br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 93> Xunit>                <tr>
        Elastic APM .NET Tests> 93> Xunit>                   <td>
        Elastic APM .NET Tests> 93> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> Line 25: 			LoggingConfig.SetupLogging();
        Elastic APM .NET Tests> 93> Xunit> Line 26:
        Elastic APM .NET Tests> 93> Xunit> <font color=red>Line 27: 			var logger = LogManager.GetCurrentClassLogger();
        Elastic APM .NET Tests> 93> Xunit> </font>Line 28: 			logger.Info(&quot;Current process ID: {ProcessID}, ELASTIC_APM_SERVER_URLS: {ELASTIC_APM_SERVER_URLS}&quot;,
        Elastic APM .NET Tests> 93> Xunit> Line 29: 				Process.GetCurrentProcess().Id, Environment.GetEnvironmentVariable(&quot;ELASTIC_APM_SERVER_URLS&quot;));</pre>                      </code>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>                   </td>
        Elastic APM .NET Tests> 93> Xunit>                </tr>
        Elastic APM .NET Tests> 93> Xunit>             </table>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b> Source File: </b> C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs<b> &nbsp;&nbsp; Line: </b> 27
        Elastic APM .NET Tests> 93> Xunit>             <br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded.<br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 93> Xunit>                <tr>
        Elastic APM .NET Tests> 93> Xunit>                   <td>
        Elastic APM .NET Tests> 93> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> WRN: Assembly binding logging is turned OFF.
        Elastic APM .NET Tests> 93> Xunit> To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
        Elastic APM .NET Tests> 93> Xunit> Note: There is some performance penalty associated with assembly bind failure logging.
        Elastic APM .NET Tests> 93> Xunit> To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
        Elastic APM .NET Tests> 93> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>                   </td>
        Elastic APM .NET Tests> 93> Xunit>                </tr>
        Elastic APM .NET Tests> 93> Xunit>             </table>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b>Stack Trace:</b> <br><br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <table width=100% bgcolor="#ffffcc">
        Elastic APM .NET Tests> 93> Xunit>                <tr>
        Elastic APM .NET Tests> 93> Xunit>                   <td>
        Elastic APM .NET Tests> 93> Xunit>                       <code><pre>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> [FileLoadException: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 93> Xunit>    System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor() +0
        Elastic APM .NET Tests> 93> Xunit>    System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor() +73
        Elastic APM .NET Tests> 93> Xunit>    System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters() +55
        Elastic APM .NET Tests> 93> Xunit>    System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config) +34
        Elastic APM .NET Tests> 93> Xunit>    System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes) +393
        Elastic APM .NET Tests> 93> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateConfiguration&gt;b__11_0() +94
        Elastic APM .NET Tests> 93> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 93> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 93> Xunit>    System.Web.Http.&lt;&gt;c.&lt;CreateDefaultServer&gt;b__13_0() +46
        Elastic APM .NET Tests> 93> Xunit>    System.Lazy`1.CreateValue() +734
        Elastic APM .NET Tests> 93> Xunit>    System.Lazy`1.LazyInitValue() +189
        Elastic APM .NET Tests> 93> Xunit>    AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:27
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +517
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +185
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277
        Elastic APM .NET Tests> 93> Xunit>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit> [HttpException (0x80004005): Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
        Elastic APM .NET Tests> 93> Xunit>    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724
        Elastic APM .NET Tests> 93> Xunit> </pre>                      </code>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>                   </td>
        Elastic APM .NET Tests> 93> Xunit>                </tr>
        Elastic APM .NET Tests> 93> Xunit>             </table>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <br>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <hr width=100% size=1 color=silver>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>             </font>
        Elastic APM .NET Tests> 93> Xunit>
        Elastic APM .NET Tests> 93> Xunit>     </body>
        Elastic APM .NET Tests> 93> Xunit> </html>
        Elastic APM .NET Tests> 93> Xunit> <!--
        Elastic APM .NET Tests> 93> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 93> Xunit> [FileLoadException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 93> Xunit>    at System.Net.Http.Formatting.BaseJsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 93> Xunit>    at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()
        Elastic APM .NET Tests> 93> Xunit>    at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.Http.HttpConfiguration.DefaultFormatters(HttpConfiguration config)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.Http.HttpConfiguration..ctor(HttpRouteCollection routes)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateConfiguration>b__11_0()
        Elastic APM .NET Tests> 93> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 93> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.Http.GlobalConfiguration.<>c.<CreateDefaultServer>b__13_0()
        Elastic APM .NET Tests> 93> Xunit>    at System.Lazy`1.CreateValue()
        Elastic APM .NET Tests> 93> Xunit>    at System.Lazy`1.LazyInitValue()
        Elastic APM .NET Tests> 93> Xunit>    at AspNetFullFrameworkSampleApp.MvcApplication.Application_Start() in C:\Users\jenkins\workspace\net_apm-agent-dotnet-mbp_PR-1742\apm-agent-dotnet\sample\AspNetFullFrameworkSampleApp\Global.asax.cs:line 27
        Elastic APM .NET Tests> 93> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
        Elastic APM .NET Tests> 93> Xunit> [HttpException]: Could not load file or assembly &#39;Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&#39; or one of its dependencies. The located assembly&#39;s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
        Elastic APM .NET Tests> 93> Xunit>    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
        Elastic APM .NET Tests> 93> Xunit> -->
        Elastic APM .NET Tests> 93> Xunit> [2022-08-10 13:37:10.584 +00:00][Info] - {LoggingTestBase} Finished test: Elastic.Apm.AspNetFullFramework.Tests.CentralConfigTests+MaxSpansAndSampleRateTests.Combination_of_both_options(maxSpansLocalConfig: 10, isSampledLocalConfig: False) 
    

Steps errors 1

Expand to view the steps failures

Test IIS
  • Took 8 min 12 sec . View more details here
  • Description: .ci/windows/test-iis.bat

:robot: GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

apmmachine avatar Jun 22 '22 23:06 apmmachine

@dependabot ignore this dependency

gregkalapos avatar Aug 23 '22 21:08 gregkalapos

OK, I won't notify you about Newtonsoft.Json again, unless you re-open this PR or update it yourself. 😢

dependabot[bot] avatar Aug 23 '22 21:08 dependabot[bot]