hi
The abp app logs.
See .WriteTo.Async(c => c.File("Logs/logs.txt"))
namespace MyCompanyName.MyProjectName;
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
#if DEBUG
.MinimumLevel.Debug()
#else
.MinimumLevel.Information()
#endif
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
I think the changes are too big, so there maybe some breaking. You can try it step by step.
abp will use HttpContext.User(ClaimsPrincipal) to populate the ICurrentUser
hi
Please check the AbpSettings table, the email configurations are stored in it.
hi
Can you get the logs.txt when the app is running on Azure App Service?
hi
The previous EF Core may need the virtual keyword.
There is no need to make navigations virtual unless they are being used by lazy-loading or change-tracking proxies.
It doesn't matter if you use it all the time.
hi
Please sahre the logs of authserver. Thanks
liming.ma@volosoft.com
Can you share a simple project to reproduce?
Thanks
liming.ma@volosoft.com
hi
Halil: There is no source code, unfortunately. It is just a simple example, nothing fancy.
hi
Do you have code like below in your FormsHttpApiHostModule?
If so can you share the steps to reproduce this error in a new angular and aspnet core template app?
context.Services.AddCors(options =>
{
options.AddDefaultPolicy(builder =>
{
builder
.WithOrigins(
configuration["App:CorsOrigins"]?
.Split(",", StringSplitOptions.RemoveEmptyEntries)
.Select(o => o.Trim().RemovePostFix("/"))
.ToArray() ?? Array.Empty<string>()
)
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
app.UseCors();
app.UseStaticFiles();
app.UseRouting();
app.UseCors();