Starts in:
2 DAYS
11 HRS
14 MIN
27 SEC
Starts in:
2 D
11 H
14 M
27 S
Open Closed

can't open PermissionManagementModal after published to iis #5823


User avatar
0
hussein created

Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include the following:

  • ABP Framework version: 7.4.0-rc.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

after i upgraded to v7.4.0-rc.3 , and published my apps, the app couldn't show the modal page for editing user or role permissions or personal data (all related to identity), the log file as the following

2023-09-20 10:23:51.108 +03:00 [ERR] An unhandled exception has occurred while executing the request. System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.HttpUtility, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. File name: 'System.Web.HttpUtility, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at AspNetCoreGeneratedDocument.Pages_AbpPermissionManagement_PermissionManagementModal.<ExecuteAsync>b__24_1() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at AspNetCoreGeneratedDocument.Pages_AbpPermissionManagement_PermissionManagementModal.<ExecuteAsync>b__24_1() at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(Boolean useCachedResult, HtmlEncoder encoder) at Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal.AbpModalTagHelperService.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count) at AspNetCoreGeneratedDocument.Pages_AbpPermissionManagement_PermissionManagementModal.<ExecuteAsync>b__24_0() at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.GetChildContentAsync(Boolean useCachedResult, HtmlEncoder encoder) at Microsoft.AspNetCore.Mvc.TagHelpers.RenderAtEndOfFormTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count) at AspNetCoreGeneratedDocument.Pages_AbpPermissionManagement_PermissionManagementModal.ExecuteAsync() at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpOpenIddictMiddlewareExtension.<>c__DisplayClass0_0.<<UseAbpOpenIddictValidation>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task) 2023-09-20 10:24:41.334 +03:00 [ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": { "ActivatorChain": "Pages.Gdpr.PersonalData.Index" }, "validationErrors": null } 2023-09-20 10:24:41.335 +03:00 [ERR] An exception was thrown while activating Pages.Gdpr.PersonalData.Index. Autofac.Core.DependencyResolutionException: An exception was thrown while activating Pages.Gdpr.PersonalData.Index. ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'Pages.Gdpr.PersonalData.Index' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.Gdpr.IGdprRequestAppService gdprRequestAppService' of constructor 'Void .ctor(Volo.Abp.Gdpr.IGdprRequestAppService)'.

also,after upgrade i can't open the user edit modal, knowing that we override it and we noted in the newer version there is a new tab "Details" , could you give me the new tab razor page code

my current page as the following

<form method="post" asp-page="/Identity/Users/EditModal"> <abp-modal> <abp-modal-header style="width:130%" title="@L["Edit"].Value"></abp-modal-header> <abp-modal-body style="width:130%"> <abp-tabs name="create-user-modal-tabs"> .. </abp-tab> @if (Model.Roles.Any()) { <abp-tab name="Roles" title="@L.GetString("Roles{0}", Model.Roles.Count(r => r.IsAssigned))"> .. </abp-tab> } @if (Model.OrganizationUnits.Any()) { <abp-tab name="OrganizationUnits" title="@L.GetString("OrganizationUnits{0}", Model.OrganizationUnits.Count(r => r.IsAssigned))"> ... </abp-tab> } <abp-tab name="your-custom-tab" title="@L["ExtraProperties"].Value"> ... </abp-tab> <abp-tab name="SocialMedia-tab" title="@L["SocialMedia"].Value"> ... </abp-tab> </abp-tabs> </abp-modal-body> <abp-modal-footer style="width:130%" buttons="@(AbpModalButtons.Cancel | AbpModalButtons.Save)"></abp-modal-footer> </abp-modal> </form>

thanks in advance


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello hussein,

    I have tried to reproduce the issue as mentioned by you, but for version 7.4.0-rc.3 after publishing to IIS I am able to see the modal page for editing user or role permissions or personal data (all related to identity) and also new Details tab

    Actually the link shared by you for downloading sample source code having solutions with 7.0.0 version.

    Instead of that I have used these commands

    dotnet tool update --global Volo.Abp.Cli --version 7.4.0-rc.2
    
    abp new Acme.BookStore --preview
    

    Please try this and do let me know if this find helpful for you

    Thank you, Anjali

  • User Avatar
    0
    hussein created

    i already have my current apps running since version 6 and last time i updated it from 7.3.0 to 7.4.0-rc.3 using using the command abp update cmd

    <PackageReference Include="Volo.Abp.Autofac" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.AuditLogging.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.OpenIddict.Pro.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.LanguageManagement.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Saas.Host.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.Gdpr.Web" Version="7.4.0-rc.3" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Web" Version="7.4.0-rc.3" />

    for the details tab in edit user as i said, we already override the razor page, so this new tab didn't appear, i just want the razor page for the details to add it in our existing override page

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello hussein,

    here is the code for Details razor page, try with this ->

    Please do let me know if it helps you

    Thank you, Anjali

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06