0

I'm trying to run my app which includes some SignalR connections and other async methods.

As soon as the codes reaches

connection.StartAsync();

I get this Error:

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?

Israel
  • 1
  • Looking at the source i can see that in the Constants class the UserAgent Header gets prepared for later usage in requests. As part of the UserAgent string the AssemblyInformationalVersion of the SignalR Assembly is used. Without knowing anything about TestStand i would assume that this product manipulates the Attribute in a way that makes it invalid to be used as UserAgent string. Therefore you get a FormatException. – Ralf Oct 14 '20 at 11:11
  • Thank you for your effort. So, there's nothing I can do about it? – Israel Oct 14 '20 at 12:21

0 Answers0