SumoLogic / sumologic-net-appenders

Several appenders for .NET developers to use that send logs straight to SumoLogic.
Apache License 2.0
23 stars 39 forks source link

NLog appender not working with .NET Framework 4.5.2 #66

Closed catalintomescu closed 6 years ago

catalintomescu commented 6 years ago

I added NLog 4.5.6 and SumoLogic.Logging.NLog 1.0.0.7 to an existing Web API project targeting .NET Framework 4.5.2 but the SumoLogic appender throws an exception Exception thrown: 'System.Net.Http.HttpRequestException' in SumoLogic.Logging.Common.dll Are there any knows issues with .NET Framework 4.5.2?

TerribleDev commented 6 years ago

Are you sure you are not running into a TLS issue with your app? Unless you are on 4.6 or higher your app will try to use older versions of TLS that sumologic no longer supports. This comment has a few ways in which you can make sure you are using supported versions of TLS.

snakefoot commented 6 years ago

@catalintomescu Can you show the entire callstack of the exception?

catalintomescu commented 6 years ago

@TerribleDev Following the instructions to configure ServicePointManager.SecurityProtocol resolved the problem. Thanks!