Closed talos79 closed 2 months ago
If the project used is generated via Visual Studio, then look in your csproj for this
<InvariantGlobalization>true</InvariantGlobalization>
and remove it.
I don't have any issues running locally. But I am getting that same error trying to run my API using this sink in docker. My project file does not have that property.
@nitewulf I could not reproduce the described problem. Do you have a full stack trace and perhaps a minimal but complete sample project for us to reproduce the exception?
Closed due do inactivity and because I could not reproduce the issue.
.Net 8.0 API build correctly but when trying to debug in visual studio (F5) this is the exception:
Have logs saved in database table
appsettings.json
var builder = WebApplication.CreateBuilder(args);
//Add support to logging with SERILOG builder.Host.UseSerilog((context, configuration) => configuration.ReadFrom.Configuration(context.Configuration));
builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen();
var app = builder.Build();
app.UseHttpsRedirection();
//Add support to logging request with SERILOG app.UseSerilogRequestLogging();
app.UseAuthorization();
app.MapControllers();
app.Run();