You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to add Dynatrace to a legacy .NET4.8 application, and having a bit of trouble. I already had sinks turned on for the Debug window and EventLog, and had no issue with those. When I added Dynatrace, I see the following exception when a log line is attempted (*** is omitted text for confidential reasons):
System.TypeInitializationException
HResult=0x80131534
Message=The type initializer for '***.Logger.***SeriLog' threw an exception.
Source=***.Web
StackTrace:
at ***.Web.Support.TestLogging() in ***.Web\Support.asmx.cs:line 29
This exception was originally thrown at this call stack:
Inner Exception 1:
TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception 2:
TypeLoadException: Could not load type 'Serilog.Sinks.Http.BatchFormatters.BatchFormatter' from assembly 'Serilog.Sinks.Http, Version=8.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10'.
I am using configuration to turn on sinks. This is what my Web.config file looks like for Serilog:
Hello!
I am attempting to add Dynatrace to a legacy .NET4.8 application, and having a bit of trouble. I already had sinks turned on for the Debug window and EventLog, and had no issue with those. When I added Dynatrace, I see the following exception when a log line is attempted (*** is omitted text for confidential reasons):
I am using configuration to turn on sinks. This is what my
Web.config
file looks like for Serilog:and this is the code that is creating the logger:
and these are the nuget packages with their versions that I have for Serilog:
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: