hi
There are no error logs in your latest logs.txt. And the log level is not DEBUG
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
hi
but mostly it does not.
Can you share a demo app to reproduce?
liming.ma@volosoft.com
Thanks.
hi
Please delete the Logs.txt then start your app and reproduce the 500 error and share the Logs.txt again.
Thanks.
hi
Can you share the full debug Logs.txt?
Maybe some errors occur. If you can share a demo project, that would be best.
liming.ma@volosoft.com
Thanks.
hi
It seems your Redis server is not working.
Can you check that Redis is connectable and working?
Thanks.
hi
Can you share the Logs.txt file?
var loggerConfiguration = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
Thanks
hi
Can you share the logs.txt of 500 Internal Server Error ?
We need to see what the error is.
Thanks
hi
Do you have multiple instances?
Have your instances been restarted?
Have you set up ConfigureDataProtection?
private void ConfigureDataProtection(
ServiceConfigurationContext context,
IConfiguration configuration,
IWebHostEnvironment hostingEnvironment)
{
var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("MyProjectName");
if (!hostingEnvironment.IsDevelopment())
{
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]!);
dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "MyProjectName-Protection-Keys");
}
}
Thanks.
hi
Please share HrCountry/HrCountryDto and HrMailCountry/HrMailCountryDto code
I will check the mapper.
Thanks.