NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Weird exceptions when running a .NET DLL from TS, but in VS2019 it works smoothly

Hi,

 

I try to run my app which includes some SignalR connections and other async methods.

As soon as the codes reaches

connection.StartAsync();

 I get this:

 

System.TypeInitializationException: 'The type initializer for 'Microsoft.AspNetCore.Http.Connections.Client.Internal.Constants' threw an exception.'

Inner Exception:
FormatException: The format of value '@BuiltBy: dlab-DDVSOWINAGE059 @Branch: release/2.1 @SrcCode: https://github.com/dotnet/corefx/tree/30ab651fcb4354552bd4891619a0bdd81e0ebdbf' is invalid.

This exception was originally thrown at this call stack:
    System.Net.Http.Headers.ProductInfoHeaderValue.Parse(string)
    Microsoft.AspNetCore.Http.Connections.Client.Internal.Constants.Constants()

 

When running from VS all looks good and works fine.

So far, I have no clue.

 

Any ideas?

0 Kudos
Message 1 of 1
(973 Views)