Activities of "XavierRM"

Hello,

  • ABP Framework version: v3.3.1
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Since this morning, we have been unable to build our ABP based solution, either on our CI (DevOps) server or our local computers. Package restore always fails (tested on two developer computers, and the CI server). This is very problematic as it has become impossible for us to build and deploy new versions of our application.

On our CI server, our master branch, which successfully built last thursday and have not changed since, cannot be built today.

We suspect the ABP Commercial nuget server to be the source of this problem. If I remove the ABP Commercial source from our NuGet.config, then NuGet can start restoring the packages that come from other sources (but then fails to find the commercial packages of course). I have double checked our NuGet source URL, which seems to be correct (and has not changed since the last successful build anyway). When the commercial source is here, NuGet crashes before starting restoring the packages ; it crashes as it reads the first project file that contains Pro package references.

  • Steps to reproduce the issue:

    • Clear your local NuGet cache
    • Rebuild an ABP commercial solution
  • Exception message and stack trace: This is the output from package restore on our CI server

Running restore with 4 concurrent jobs.
Reading project file D:\a\1\s\src\MyProject.Domain.Shared\MyProject.Domain.Shared.csproj.
Reading project file D:\a\1\s\src\MyProject.EntityFrameworkCore.DbMigrations\MyProject.EntityFrameworkCore.DbMigrations.csproj.
Reading project file D:\a\1\s\src\MyProject.Web\MyProject.Web.csproj.
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.Commands.SourceRepositoryDependencyProvider.<FindLibraryAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.DependencyResolver.ResolverUtility.<>c__DisplayClass9_1.<<FindLibraryFromSourcesAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.DependencyResolver.ResolverUtility.<FindLibraryFromSourcesAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.DependencyResolver.ResolverUtility.<FindLibraryByVersionAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.DependencyResolver.ResolverUtility.<FindPackageLibraryMatchAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.DependencyResolver.ResolverUtility.<FindLibraryMatchAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.DependencyResolver.ResolverUtility.<FindLibraryEntryAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.DependencyResolver.RemoteDependencyWalker.<CreateGraphNode>d__3.MoveNext())
##[error]Packages failed to restore

Our NuGet.config file is basically the default one (our private key has been removed) :

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <packageSources>
		<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
        <add key="ABP Commercial NuGet Source" value="https://nuget.abp.io/<key>/v3/index.json" />
    </packageSources>
</configuration>

Thanks, that's a good start. I can get the custom page settings to show, but I can't get it to show only to users having the right permission.

Here is what I have in my settings page contributor :

public class EmailSettingsPageContributor : ISettingPageContributor
{
    public async Task<bool> CheckPermissionsAsync(SettingPageCreationContext context)
    {
        Check.NotNull(context, nameof(context));
        var permissionChecker = context.ServiceProvider.GetRequiredService<IPermissionChecker>();

        var result = await permissionChecker.IsGrantedAsync(MyAppPermissions.EmailSettings.Edit);
        return result;
    }

    public Task ConfigureAsync(SettingPageCreationContext context)
    {
        Check.NotNull(context, nameof(context));
        var localizer = context.ServiceProvider.GetRequiredService<IStringLocalizer<MyAppResource>>();

        context.Groups.Add(new SettingPageGroup("emailsPageGroup", localizer["Settings:Email"], typeof(EmailSettingsViewComponent)));
        return Task.CompletedTask;
    }
}

It seems CheckPermissionsAsync is never called, and my settings pages is always displayed.

  • ABP Framework version: v3.0.5
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hello,

I want to allow a website's administrator user to edit the SMTP settings, including MailKit's SecureSocketOption since it is required to connect to some email providers. While there is some documentation about customizing the Angular settings page, I can't find anything about doing the same using the MVC UI, and it's impossible to know how to do it without the source code.

Is there a way to automatically add an Email tab with the email related settings ? What about the SecureSocketOption option ? If I have to do it manyally, what are the extension moints and their documentation ?

Thank you

We found what the problem was. Someone tinkered with the menu providers and the account menu provider was removed. Sorry for bothering you

Thank you for your answer. We already have this module installed. Here is our current modules list (for the Web project) :

    [DependsOn(
        typeof(MyProjectHttpApiModule),
        typeof(MyProjectApplicationModule),
        typeof(MyProjectEntityFrameworkCoreDbMigrationsModule),
        typeof(AbpAutofacModule),
        typeof(AbpIdentityWebModule),
        typeof(AbpAccountPublicWebIdentityServerModule),
        typeof(AbpAuditLoggingWebModule),
        typeof(LeptonThemeManagementWebModule),
        typeof(AbpAccountAdminWebModule),
        typeof(AbpIdentityServerWebModule),
        typeof(LanguageManagementWebModule),
        typeof(AbpAspNetCoreMvcUiLeptonThemeModule),
        typeof(TextTemplateManagementWebModule)
        )]

Do you have any other suggestion ?

Hello,

We have a project we created using ABP Suite. We worked on it for a few days, and realized that the user dropdown links (used to log out and manage my account) have disappeared from the interface. We still use the default layout, and have not customized the top menu, and so we have no idea how to make these links reappear. One thing that may have caused this is that we removed the ABP modules that we thought we didn't need, and maybe these links were provided by one of these modules - however, we cannot access the UI source code, and there is zero documentation on that matter, so I'm not sure what to do next to fix that problem.

Would it be possible to get some indications about that part of the UI, that could help us bring these links back?

  • ABP Framework version: v2.9.0
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no

What we want:

What we currently have:

Showing 1 to 6 of 6 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35