hi
Please share the debug logs(.MinimumLevel.Debug()) for the requests.
Thanks.
public class Program
{
public async static Task<int> Main(string[] args)
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
.Enrich.FromLogContext()
.WriteTo.Async(c => c.File("Logs/logs.txt"))
.WriteTo.Async(c => c.Console())
.CreateLogger();
hi
Can you share your TavTechnologies.Octopus.AdministrationService project source code?
And the nuget package file. TavTechnologies.Octopus.AdministrationService.Contracts.nupkg
I need to confirm if generate-proxy.json is in your nuget package.
liming.ma@volosoft.com
Thanks.
hi
context.Services.AddCors(options = will only execute once.
You can use MyCorsPolicyProvider to dynamic get doamins from database/cache.
// 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();
// });
// });
context.Services.RemoveAll(typeof(ICorsPolicyProvider));
context.Services.Add(ServiceDescriptor.Transient<ICorsPolicyProvider, MyCorsPolicyProvider>());
public class MyCorsPolicyProvider : ICorsPolicyProvider
{
private readonly static Task<CorsPolicy?> NullResult = Task.FromResult<CorsPolicy?>(null);
private readonly CorsOptions _options;
public MyCorsPolicyProvider(IOptions<CorsOptions> options)
{
_options = options.Value;
}
public async Task<CorsPolicy?> GetPolicyAsync(HttpContext context, string? policyName)
{
//get domains from database, remember to cache it
var domains = new List<string> { "https://localhost:44300", "https://localhost:44301" };
var builder = new CorsPolicyBuilder(Array.Empty<string>());
builder
.WithOrigins(
domains.Select(o => o.Trim().RemovePostFix("/"))
.ToArray() ?? Array.Empty<string>()
)
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
var result = builder.Build();
return result;
}
}
hi
Where is the /Themes/LeptonX/Global/side-menu/css/bootstrap-light.css file located?
Can you check if it exists in the wwwroot folder?
Please also share the csproj file context of your https://idp.preprod.eduverse.vision project.
Thanks.
hi
ABP 9 is targeted to net9.0.
Is the UsePostgreSqlStorage support net 9 as well?
In fact, this error is not related to abp.
Thanks
hi
Can you change all net9.0 target to net8.0 in csproj files?
You can also use old CLI to create a new 8.x project and then develop it in Studio.
https://abp.io/docs/latest/cli/differences-between-old-and-new-cli
hi
Unable to retrieve document from: 'https://auth.logiclinkenterprise.com/.well-known/openid-configuration'. ---> System.Net.Http.HttpRequestException: The requested name is valid, but no data of the requested type was found. (auth.logiclinkenterprise.com:443) ---> System.Net.Sockets.SocketException (11004): The requested name is valid, but no data of the requested type was found.
This means the domain name can't be solved. Your API website can't reached to https://auth.logiclinkenterprise.com
Have you set the DNS for these domains?
hi
The DynamicLocalizationResourceContributor and DynamicResourceLocalizer are coming from Language Management.
Do you have license to download the source code of this module?
hi
I can send you the full log via wetransfer if you want.
Please. liming.ma@volosoft.com