Hi @maliming, I tried to creating a new clean project but getting some error in lepton theme, may be because of version. But you can try from your end.
I have followed below steps
private void ConfigureAzureBlob(IConfiguration configuration)
{
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.ConfigureDefault(c =>
{
c.UseAzure(container =>
{
container.ConnectionString = configuration["Azure:BlobConnectionString"];
container.ContainerName = configuration["Azure:BlobContainerName"];
container.CreateContainerIfNotExists = true;
});
});
options.Containers.Configure<FileManagementContainer>(c =>
{
c.UseAzure(container =>
{
container.ConnectionString = configuration["Azure:BlobConnectionString"];
container.ContainerName = configuration["Azure:BlobContainerName"];
container.CreateContainerIfNotExists = true;
// Add other configurations as needed
});
});
});
}
Please help me what I am doing wrong.
Thank you.
Sure, I will share the test project in sometime. Meanwhile can you please help me which is the right project to add the above configuration from these 3 Domain, Application & APIHost?
Thank you.
Hi @maliming,
I have used below code for Azure configuration. I have tried by adding below code in Domain, Application & APIHost module.
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.ConfigureDefault(c =>
{
c.UseAzure(container =>
{
container.ConnectionString = configuration["Azure:BlobConnectionString"];
container.ContainerName = configuration["Azure:BlobContainerName"];
container.CreateContainerIfNotExists = true;
});
})
options.Containers.Configure<FileManagementContainer>(c =>
{
//c.UseDatabase();
c.UseAzure(container =>
{
container.ConnectionString = configuration["Azure:BlobConnectionString"];
container.ContainerName = configuration["Azure:BlobContainerName"];
container.CreateContainerIfNotExists = true;
// Add other configurations as needed
});
});
});
Hello,
Thank you for support
I need a login URL and send an email include the URL. Users should click on the login url from email and redirect to the login page with the selected tenant.
Thanks
How to generate a login url with the tenant selected like below? "https://localhost:44387/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3DDemo_App%26state%3DZjVrWjh4ZT456978FaY34zd1dtR05Pd0JkVm0xVDkyZXZoUEY0empFeGVxNW8y;%25252F%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Dopenid%2520offline_access%2520Demo%26code_challenge%3D35oANtgnbuoIhsr6542Hl52gEVvJkPKBuwVGxVyJMJ0%26code_challenge_method%3DS256%26nonce%3DZjVrWjh4ZTluSkFaY34zd1dt987450JkVm0xVDkyZXZoUEY0empFeGVxNW8y%26culture%3Den%26ui-culture%3Den%26returnUrl%3D%252F"
How can we send email with the above login url on add/register new user from application?
Thanks
Hi Engincan, Thank you for your reply.
Yes I am removing the duplicate dbset for now.
Please also check because I am also getting an error if I generate the unit test for an existing entity which were created before upgrade.
I am not reopening the ticket, but please try to follow the same steps with generating unit test and you will get the error. Please keep track of it with your internal issue too.
Thank you.
Hi Engincan, Thank you for your reply. Please follow the below steps
Thank you.
Hi EngincanV, do you have any update on this?
Thank you.
It is adding and extra DBSet for an exisitng entity and that cause a build error. I have tried by removing an extra DBSet as well but after that started getting and error in unit test. Please keep this on high priority as this keeps holding development work