question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to 5.2 from 5.1 breaks use in Blazor WebAssembly

See original GitHub issue

Downgrading fixed the issue.

The Chrome console reports: System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.Http.SocketsHttpHandler.set_PooledConnectionLifetime(TimeSpan value) at Serilog.Sinks.Seq.Http.SeqIngestionApiClient…ctor(String serverUrl, String apiKey, HttpMessageHandler messageHandler) at Serilog.SeqLoggerConfigurationExtensions.Seq(LoggerSinkConfiguration loggerSinkConfiguration, String serverUrl, LogEventLevel restrictedToMinimumLevel, Int32 batchPostingLimit, Nullable1 period, String apiKey, String bufferBaseFilename, Nullable1 bufferSizeLimitBytes, Nullable1 eventBodyLimitBytes, LoggingLevelSwitch controlLevelSwitch, HttpMessageHandler messageHandler, Nullable1 retainedInvalidPayloadsLimitBytes, Int32 queueSizeLimit)

Log.Logger = new LoggerConfiguration() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .Enrich.FromLogContext() .Enrich.WithProperty("Domain", "PersonalFinance") .Enrich.WithProperty("App", "Web") //.WriteTo.BrowserConsole() // this one causes Json errors (null value) //.WriteTo.Debug() .WriteTo.Seq("http://****.org:5341") .CreateLogger();

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liammclennancommented, Sep 19, 2022

Thanks @vincentnl, We have reproduced the error. Now we just need to fix it. 😃

0reactions
nblumhardtcommented, Nov 14, 2022

Thanks for checking it out again @vincentnl . I’ve had another attempt and verified with a sample project in:

https://github.com/datalust/serilog-sinks-seq/pull/191

I’ll let you know here as soon as there’s a published build available. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blazor WASM: Upgrading to .NET 6 preview 7 breaks ...
I've been building out a Blazor WebAssembly application that uses localization. It was working with .NET 6 preview 6, but since upgrading to ......
Read more >
ABP Version 5.2 Migration Guide
This document is a guide for upgrading ABP v5.x solutions to ABP v5.2. ... If you use Blazor WASM or Blazor Server UI,...
Read more >
Best way to update to newer versions of bootstrap and font ...
Can anyone tell me the best way to update to newer versions of bootstrap and font awesome in blazor webassembly app from the...
Read more >
Migrate from ASP.NET Core 3.1 to 5.0
If updating a Blazor WebAssembly project, skip to the Update ... for each segment first and only uses the length of the route...
Read more >
Blazor WebAssembly - Upgrade NET5 to NET6 in 8 minutes
... I am showing how you can upgrade your Blazor application from . ... https://devblogs.microsoft.com/dotnet/announcing-net-6/ Breaking ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found