What is the output of the abp bundle command now?
So, can it be disabled on abp 6+ completely for small projects?
We recommend using Redis, but you can try to disable it in web and webpublic. I'm not sure if there will be any impact in the future, because we will assume that they will use Redis..
This should make it work without the need to add the self signed certificates to azure/iis correct?
The pfx file will be: Path.Combine(hostingEnv.ContentRootPath, "authserver.pfx")
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
COPY bin/Release/net7.0/publish/ app/
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
RUN dotnet dev-certs https -v -ep authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED
FROM base AS final
WORKDIR /app
COPY --from=build /src .
ENTRYPOINT ["dotnet", "MyCompanyName.MyProjectName.AuthServer.dll"]
hi
I will check it asap.
Can you share a project and then I will check it locally?
liming.ma@volosoft.com
hi
Sorry, The abp framework doesn't support DbContextPool
hi
What would happen without redis specifically?
The data in Web and WebPublic may be inconsistent.
For example, the Web changes the cache, but WebPublic cannot know.
If Redis is disabled, Web Public will frequently get data from the Web and cause performance problems.
You can create a certificate and put in the application directory.
The latest template already did this.
dotnet dev-certs https -v -ep authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED
public override void PreConfigureServices(ServiceConfigurationContext context)
{
var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = context.Services.GetConfiguration();
if (!hostingEnvironment.IsDevelopment())
{
PreConfigure<AbpOpenIddictAspNetCoreOptions>(options =>
{
options.AddDevelopmentEncryptionAndSigningCertificate = false;
});
PreConfigure<OpenIddictServerBuilder>(builder =>
{
builder.AddSigningCertificate(GetSigningCertificate(hostingEnvironment, configuration));
builder.AddEncryptionCertificate(GetSigningCertificate(hostingEnvironment, configuration));
builder.SetIssuer(new Uri(configuration["AuthServer:Authority"]));
});
}
}
private X509Certificate2 GetSigningCertificate(IWebHostEnvironment hostingEnv, IConfiguration configuration)
{
var fileName = "authserver.pfx";
var passPhrase = "2D7AA457-5D33-48D6-936F-C48E5EF468ED";
var file = Path.Combine(hostingEnv.ContentRootPath, fileName);
if (!File.Exists(file))
{
throw new FileNotFoundException($"Signing Certificate couldn't found: {file}");
}
return new X509Certificate2(file, passPhrase);
}
hi
https://support.abp.io/QA/Questions/2401/Setting-Mangement-Issue
Certificate like AddDevelopmentEncryptionAndSigningCertificate of Openiddict,AddDevelopmentEncryptionAndSigningCertificate cannot be used in applications deployed on IIS or Azure App Service: trying to use them on IIS or Azure App Service will result in an exception being thrown at runtime (unless the application pool is configured to load a user profile). To avoid that, consider creating self-signed certificates and storing them in the X.509 certificates store of the host machine(s). Please refer to: https://documentation.openiddict.com/configuration/encryption-and-signing-credentials.html#registering-a-development-certificate
https://docs.abp.io/en/abp/latest/Modules/OpenIddict#abpopeniddictaspnetcoreoptions
I don't quite understand. Can you share some code or ui to explain?
hi
I will provide such a sample If it is the ui you need
https://datatables.net/examples/api/row_details.html
If the local can't be reproduced, there is a problem with the build server.
Does it use the correct net sdk?
Based on these error messages, I can't troubleshoot the problem.