Activities of "darutter"

public override void PreConfigureServices(ServiceConfigurationContext context)
{
    var hostingEnvironment = context.Services.GetHostingEnvironment();
    var configuration = context.Services.GetConfiguration();

    context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
    {
        options.AddAssemblyResource(
            typeof(StatAlertResource),
            typeof(StatAlertDomainModule).Assembly,
            typeof(StatAlertDomainSharedModule).Assembly,
            typeof(StatAlertApplicationModule).Assembly,
            typeof(StatAlertApplicationContractsModule).Assembly,
            typeof(StatAlertWebModule).Assembly
        );
    });

    PreConfigure<OpenIddictBuilder>(builder =>
    {
        builder.AddValidation(options =>
        {
            options.AddAudiences("StatAlert");
            options.UseLocalServer();
            options.UseAspNetCore();
        });
    });

    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"]));
        });
    }
}

This is the code in the GetSigningCertificate (minus the line that defines the actual key) 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);

NOTICE that the message if the file doesn't exist is not the message received in the error.

The file does exist and it the one I created with the correct key.

done

When I went to manage packages it didn't show version 8.0.1 for those packages, but I updated the .csproj files manually and it built. However now I get another runtime error:

<Project Sdk="Microsoft.NET.Sdk.Web"> <Import Project="....\common.props" /> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel> <RootNamespace>Module.Web</RootNamespace> <AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles> <MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish> <PreserveCompilationReferences>true</PreserveCompilationReferences> </PropertyGroup> <ItemGroup> <Compile Remove="Logs*" /> <Content Remove="Logs*" /> <EmbeddedResource Remove="Logs*" /> <None Remove="Logs*" /> </ItemGroup> <ItemGroup> <Content Include="Pages**.js"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> <Content Include="Pages**.css"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> </ItemGroup> <ItemGroup> <Compile Remove="Pages\Identity\Users\CreateModal.cshtml.cs" /> <Compile Remove="Pages\Identity\Users\MyCreateModal.cs" /> <Compile Remove="Pages\Identity\Users\MyEditModal.cs" /> </ItemGroup> <ItemGroup> <PackageReference Include="AspNetCore.HealthChecks.UI" Version="8.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="8.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="8.0.0" /> <PackageReference Include="Serilog.AspNetCore" Version="8.0.0" /> <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="8.0.1" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.1" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\Module.Application\Module.Application.csproj" /> <ProjectReference Include="..\Module.HttpApi\Module.HttpApi.csproj" /> <ProjectReference Include="..\Module.EntityFrameworkCore\Module.EntityFrameworkCore.csproj" /> <PackageReference Include="Volo.Abp.Autofac" Version="8.0.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="8.0.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="8.0.1" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="8.0.1" /> <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="8.0.1" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="7.4.0" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.AuditLogging.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.OpenIddict.Pro.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.LanguageManagement.Web" Version="7.4.0" /> <PackageReference Include="Volo.Saas.Host.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Web" Version="7.4.0" /> <PackageReference Include="Volo.Abp.Gdpr.Web" Version="7.4.0" /> </ItemGroup> <ItemGroup> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.4.1" /> </ItemGroup> <ItemGroup> <None Update="authserver.pfx"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> </ItemGroup> </Project>

Using your example, when you click the "New Page" action I would want to go to the User list as though you had clicked on the Administration...Identity Management...Users menu option.

david@theapppros.com

Answer

Thank you for your assistance.

Answer

That works fine if there is only one element in the associated datasets. My issue is there are many items in each of the associated datasets. For example in your case, Anjali might have 3 elements in ItemSet1 and 2 elements in ItemDataset2. The results I want to get would be:

Anjali | Plot1 | City 1 | MH | 123456 | element 1 of item1 | element 2 of item1 | element 3 of item1 | element 1 of item2 | element 2 of item2

where the elements of each dataset would be added to the row

Thank you. That worked.

Showing 21 to 30 of 62 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11