Activities of "rogercprops"

There was a company Nuget library in the default Nuget.config. I removed it and that fixed it.

Thank you

Just reopened Abp Studio and this it's what is in the log for today 2025-03-12 05:40:01.985 -05:00 [INF] Loaded ABP modules: 2025-03-12 05:40:01.987 -05:00 [INF] - Volo.Abp.Studio.UI.AbpStudioUIHostModule ... Rest of modules 2025-03-12 05:40:01.988 -05:00 [INF] Loaded ABP modules: 2025-03-12 05:40:01.988 -05:00 [INF] - Volo.Abp.Studio.Extensions.StandardTemplates.AbpStudioExtensionsStandardTemplatesCoreModule 2025-03-12 05:40:01.988 -05:00 [INF] - Volo.Abp.Studio.AbpStudioDomainModule ... Rest of modules 2025-03-12 05:40:01.988 -05:00 [INF] Loaded ABP modules: 2025-03-12 05:40:01.988 -05:00 [INF] - Volo.Abp.Studio.Extensions.StandardTemplates.UI.AbpStudioExtensionsStandardTemplatesUIModule 2025-03-12 05:40:01.988 -05:00 [INF] - Volo.Abp.Studio.Extensions.StandardTemplates.AbpStudioExtensionsStandardTemplatesCoreModule ... Rest of modules 2025-03-12 05:40:02.013 -05:00 [INF] Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl 2025-03-12 05:40:02.014 -05:00 [INF] Quartz Scheduler created 2025-03-12 05:40:02.014 -05:00 [INF] JobFactory set to: Quartz.Simpl.MicrosoftDependencyInjectionJobFactory 2025-03-12 05:40:02.022 -05:00 [INF] RAMJobStore initialized. 2025-03-12 05:40:02.022 -05:00 [INF] Quartz Scheduler 3.13.0.0 - '05815d17-416a-45ac-9809-54449954e3ba' with instanceId 'NON_CLUSTERED' initialized 2025-03-12 05:40:02.022 -05:00 [INF] Using thread pool 'Quartz.Simpl.DefaultThreadPool', size: 10 2025-03-12 05:40:02.022 -05:00 [INF] Using job store 'Quartz.Simpl.RAMJobStore', supports persistence: False, clustered: False 2025-03-12 05:40:02.024 -05:00 [INF] Adding 0 jobs, 0 triggers. 2025-03-12 05:40:02.028 -05:00 [INF] Scheduler 05815d17-416a-45ac-9809-54449954e3ba_$_NON_CLUSTERED started. 2025-03-12 05:40:02.254 -05:00 [INF] Starting ABP Studio Backend... 2025-03-12 05:40:02.325 -05:00 [INF] Initialized all ABP modules. 2025-03-12 05:40:02.402 -05:00 [INF] Application started. Press Ctrl+C to shut down. 2025-03-12 05:40:02.402 -05:00 [INF] Hosting environment: Production 2025-03-12 05:40:02.402 -05:00 [INF] Content root path: / 2025-03-12 05:40:05.823 -05:00 [INF] Setting shell environment variables for /bin/zsh 2025-03-12 05:40:06.105 -05:00 [INF] Set shell environment variable: XPC_SERVICE_NAME=application.volo.abp.studio.ui.host.275297326.275297962 2025-03-12 05:40:06.105 -05:00 [INF] Set shell environment variable: USER=rogerhopkins 2025-03-12 05:40:06.105 -05:00 [INF] Set shell environment variable: COMMAND_MODE=unix2003 2025-03-12 05:40:06.106 -05:00 [INF] Set shell environment variable: __CFBundleIdentifier=volo.abp.studio.ui.host 2025-03-12 05:40:06.106 -05:00 [INF] Set shell environment variable: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 2025-03-12 05:40:06.106 -05:00 [INF] Set shell environment variable: TMPDIR=/var/folders/cn/j4xfhgq91m3ft78bmt00pg6c0000gn/T/ 2025-03-12 05:40:06.106 -05:00 [INF] Set shell environment variable: LOGNAME=rogerhopkins 2025-03-12 05:40:06.106 -05:00 [INF] Original PATH: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/lib/node_modules/@quasar/cli/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:/Users/rogerhopkins/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/rogerhopkins/.dotnet/tools 2025-03-12 05:40:06.107 -05:00 [INF] Added the following paths: /Users/rogerhopkins/.dotnet, /usr/local/share/dotnet/x64, /Users/rogerhopkins/.abp/studio/cli/old, /opt/homebrew/opt/dotnet@8/bin, /opt/homebrew/opt/dotnet@9/bin, /usr/local/opt/node/bin, /usr/local/Cellar/node, /Users/rogerhopkins/.nvm/versions/node/v18.20.6/bin, /Users/rogerhopkins/.nvm/versions/node/v20.9.0/bin, /opt/homebrew/opt/node/bin, /opt/homebrew/opt/nvm/nvm.sh, /usr/local/opt/nvm/nvm.sh 2025-03-12 05:40:06.108 -05:00 [INF] Set shell environment variable: PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin/lib/node_modules/@quasar/cli/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:/Users/rogerhopkins/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/rogerhopkins/.dotnet/tools:/Users/rogerhopkins/.dotnet:/usr/local/share/dotnet/x64:/Users/rogerhopkins/.abp/studio/cli/old:/opt/homebrew/opt/dotnet@8/bin:/opt/homebrew/opt/dotnet@9/bin:/usr/local/opt/node/bin:/usr/local/Cellar/node:/Users/rogerhopkins/.nvm/versions/node/v18.20.6/bin:/Users/rogerhopkins/.nvm/versions/node/v20.9.0/bin:/opt/homebrew/opt/node/bin:/opt/homebrew/opt/nvm/nvm.sh:/usr/local/opt/nvm/nvm.sh 2025-03-12 05:40:06.108 -05:00 [INF] Set shell environment variable: XPC_FLAGS=0x0 .. Rest of shell environment variables HOMEBREW_BREW_GIT_REMOTE=/https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git 2025-03-12 05:40:06.112 -05:00 [INF] Set .NET environment variable: HOMEBREW_CORE_GIT_REMOTE=/https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git 2025-03-12 05:40:07.079 -05:00 [INF] Received HTTP response headers after 759.2526ms - 200 2025-03-12 05:40:07.083 -05:00 [INF] End processing HTTP request after 766.8781ms - 200 2025-03-12 05:40:07.316 -05:00 [INF] Trying to connect to ABP Studio Backend: http://localhost:38271 2025-03-12 05:40:07.965 -05:00 [INF] Start processing HTTP request GET https://abp.io/api/app/post?* 2025-03-12 05:40:07.965 -05:00 [INF] Sending HTTP request GET https://abp.io/api/app/post?* 2025-03-12 05:40:08.144 -05:00 [INF] Received HTTP response headers after 179.338ms - 200 2025-03-12 05:40:08.144 -05:00 [INF] End processing HTTP request after 179.678ms - 200 2025-03-12 05:40:10.088 -05:00 [INF] Starting task execution: Checking license end time 2025-03-12 05:40:10.092 -05:00 [INF] Completed task execution: Checking license end time 2025-03-12 05:40:10.593 -05:00 [INF] Received HTTP response headers after 571.5116ms - 200 2025-03-12 05:40:10.593 -05:00 [INF] End processing HTTP request after 571.7332ms - 200 2025-03-12 05:40:10.601 -05:00 [INF] Starting task execution: Checking pre-requirements 2025-03-12 05:40:12.539 -05:00 [INF] Trying to connect to ABP Studio Backend: http://localhost:38271 2025-03-12 05:40:16.881 -05:00 [INF] CLI command executed. Command: abp cli version Working directory: / {"ExitCode":0,"IsSuccess":true,"StartTime":"2025-03-12T05:40:13.6240470-05:00","ExitTime":"2025-03-12T05:40:16.8807040-05:00","RunTime":"00:00:03.2566570","$type":"CommandResult"} 2025-03-12 05:40:26.125 -05:00 [WRN] .NET tool Volo.Abp.Studio.Cli installation failed. Exit code: 1, Output: Unhandled exception: NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://packagelibrary.dmssolutionsweb.net/nuget. ---> System.Net.Http.HttpRequestException: No route to host (packagelibrary.dmssolutionsweb.net:443) ---> System.Net.Sockets.SocketException (65): No route to host at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.InjectNewHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at NuGet.Protocol.ServerWarningLogHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at NuGet.Protocol.HttpRetryHandler.<>c__DisplayClass5_1.<<SendAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token) at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, String source, ILogger log, CancellationToken cancellationToken) at NuGet.Protocol.HttpSource.GetThrottledResponse(Func1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken) at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token) at ODataServiceDocumentUtils.CreateODataServiceDocumentResourceV2(String url, HttpSource client, DateTime utcNow, ILogger log, CancellationToken token) --- End of inner exception stack trace --- at ODataServiceDocumentUtils.CreateODataServiceDocumentResourceV2(String url, HttpSource client, DateTime utcNow, ILogger log, CancellationToken token) at NuGet.Protocol.ODataServiceDocumentResourceV2Provider.TryCreate(SourceRepository source, CancellationToken token) at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T](CancellationToken token) at NuGet.Protocol.PackageMetadataResourceV2FeedProvider.TryCreate(SourceRepository source, CancellationToken token) at NuGet.Protocol.Core.Types.SourceRepository.GetResourceAsync[T](CancellationToken token) at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.GetPackageMetadataAsync(PackageSource source, String packageIdentifier, Boolean includePrerelease, Boolean includeUnlisted, CancellationToken cancellationToken) at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.GetMatchingVersionInternalAsync(String packageIdentifier, IEnumerable`1 packageSources, VersionRange versionRange, CancellationToken cancellationToken) at Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageDownloader.GetBestPackageVersionAsync(PackageId packageId, VersionRange versionRange, PackageSourceLocation packageSourceLocation) at Microsoft.DotNet.Cli.ToolPackage.ToolPackageDownloader.GetNuGetVersion(PackageLocation packageLocation, PackageId packageId, VerbosityOptions verbosity, VersionRange versionRange, Boolean isGlobalTool) at Microsoft.DotNet.Tools.Tool.Install.ToolInstallGlobalOrToolPathCommand.GetBestMatchNugetVersion(PackageId packageId, VersionRange versionRange, IToolPackageDownloader toolPackageDownloader) at Microsoft.DotNet.Tools.Tool.Install.ToolInstallGlobalOrToolPathCommand.ExecuteInstallCommand(PackageId packageId) at Microsoft.DotNet.Tools.Tool.Install.ToolInstallGlobalOrToolPathCommand.Execute() at Microsoft.DotNet.Tools.Tool.Update.ToolUpdateGlobalOrToolPathCommand.Execute() at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult) at System.CommandLine.ParseResult.Invoke() at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient) , StandardOutput: 2025-03-12 05:40:29.128 -05:00 [INF] Completed task execution: Checking pre-requirements 2025-03-12 05:40:29.129 -05:00 [INF] Starting task execution: Loading extensions 2025-03-12 05:40:29.146 -05:00 [INF] Completed task execution: Loading extensions 2025-03-12 05:40:29.146 -05:00 [INF] Starting task execution: Checking for the new version of ABP Studio 2025-03-12 05:40:29.433 -05:00 [INF] [VPK] Checking for updates... URL: https://abp.io/api/abp-studio/r/download/osx 2025-03-12 05:40:29.450 -05:00 [INF] Downloading release file 'releases.beta.json' from 'https://abp.io/api/abp-studio/r/download/osx/releases.beta.json?arch=arm64&os=osx&rid=osx-arm64'. 2025-03-12 05:40:29.451 -05:00 [INF] [VPK] Creating HttpClient for AbpIoFileDownloader 2025-03-12 05:40:29.452 -05:00 [INF] Start processing HTTP request GET https://abp.io/api/abp-studio/r/download/osx/releases.beta.json?* 2025-03-12 05:40:29.452 -05:00 [INF] Sending HTTP request GET https://abp.io/api/abp-studio/r/download/osx/releases.beta.json?* 2025-03-12 05:40:30.245 -05:00 [INF] Received HTTP response headers after 792.4848ms - 200 2025-03-12 05:40:30.245 -05:00 [INF] End processing HTTP request after 793.0346ms - 200 2025-03-12 05:40:30.253 -05:00 [INF] Found newer remote release available (0.9.24 -> 0.9.25). 2025-03-12 05:40:30.253 -05:00 [INF] There is no local/base package available for this update, so delta updates will be disabled. 2025-03-12 05:40:30.270 -05:00 [INF] Downloading full release (abp-studio-0.9.25-beta-full.nupkg) 2025-03-12 05:40:30.271 -05:00 [INF] Downloading 'abp-studio-0.9.25-beta-full.nupkg' from 'https://abp.io/api/abp-studio/r/download/osx/abp-studio-0.9.25-beta-full.nupkg'. 2025-03-12 05:40:30.271 -05:00 [INF] [VPK] Creating HttpClient for AbpIoFileDownloader 2025-03-12 05:40:30.272 -05:00 [INF] Start processing HTTP request GET https://abp.io/api/abp-studio/r/download/osx/abp-studio-0.9.25-beta-full.nupkg 2025-03-12 05:40:30.272 -05:00 [INF] Sending HTTP request GET https://abp.io/api/abp-studio/r/download/osx/abp-studio-0.9.25-beta-full.nupkg 2025-03-12 05:40:30.274 -05:00 [INF] Completed task execution: Checking for the new version of ABP Studio 2025-03-12 05:40:30.610 -05:00 [INF] Received HTTP response headers after 337.6146ms - 200 2025-03-12 05:40:30.610 -05:00 [INF] End processing HTTP request after 338.1997ms - 200 2025-03-12 05:40:42.687 -05:00 [INF] [VPK] Downloading update: 4 2025-03-12 05:40:46.211 -05:00 [INF] [VPK] Downloading update: 6 2025-03-12 05:40:50.693 -05:00 [INF] [VPK] Downloading update: 10 2025-03-12 05:40:55.735 -05:00 [INF] [VPK] Downloading update: 12 2025-03-12 05:41:04.340 -05:00 [INF] [VPK] Downloading update: 16 2025-03-12 05:41:12.419 -05:00 [INF] [VPK] Downloading update: 18 2025-03-12 05:41:23.033 -05:00 [INF] [VPK] Downloading update: 22

Ok. I updated the module. However it's probably fine to have the AbpDistributedEventBus use MongoDB in the same database.

However I had to add code to configure the SQL dbcontexts Configure<AbpDbContextOptions>(options => { options.Configure<PermissionManagementDbContext>(dbContextOptions => { dbContextOptions.UseSqlServer(); }); ... remaining Sql db contexts

Here's the revised MemberConfigDbContext

using CloverleafCMS.MemberConfig.Members;
using MongoDB.Driver;
using Volo.Abp.Data;
using Volo.Abp.MongoDB;
using Volo.Abp.MongoDB.DistributedEvents;

namespace CloverleafCMS.MemberConfig.Data;

[ConnectionStringName(DatabaseName)]

public class MemberConfigDbContext :
    AbpMongoDbContext,
    IHasEventInbox,
    IHasEventOutbox
{
    public IMongoCollection<Member> Members => Collection<Member>();
    public const string DatabaseName = "MemberConfig";

    public IMongoCollection<IncomingEventRecord> IncomingEvents => Collection<IncomingEventRecord>();
    public IMongoCollection<OutgoingEventRecord> OutgoingEvents => Collection<OutgoingEventRecord>();


    protected override void CreateModel(IMongoModelBuilder modelBuilder)
    {
        base.CreateModel(modelBuilder);

        modelBuilder.ConfigureEventInbox();
        modelBuilder.ConfigureEventOutbox();
    }
}

I was able to build and run the application. However when I execute the post route of the API I get this error: Error] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": null, "validationErrors": null }

3/5/2025 9:15:38 PM [Error] Autofac.Core.DependencyResolutionException: An exception was thrown while activating Castle.Proxies.MembersAppServiceProxy -> CloverleafCMS.MemberConfig.Members.MongoMemberRepository. ---> Autofac.Core.DependencyResolutionException: None of the constructors found on type 'CloverleafCMS.MemberConfig.Members.MongoMemberRepository' can be invoked with the available services and parameters: Cannot resolve parameter 'Volo.Abp.MongoDB.IMongoDbContextProvider1[CloverleafCMS.MemberConfig.Data.MemberConfigDbContext] dbContextProvider' of constructor 'Void .ctor(Volo.Abp.MongoDB.IMongoDbContextProvider1[CloverleafCMS.MemberConfig.Data.MemberConfigDbContext])'.

See https://autofac.rtfd.io/help/no-constructors-bindable for more info.

It looks like you'd didn't read the full question.

We're on Abp V9 and I generated the solution and microservice using Abp Studio version 09.23. This is the solution configuration.

  • Template: microservice
  • Created ABP Studio Version: 0.9.23
  • Current ABP Studio Version: 0.9.23
  • Multi-Tenancy: Yes
  • UI Framework: mvc
  • Theme: leptonx
  • Theme Style: system
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: sqlserver
  • Mobile Framework: none
  • Public Website: No
  • Include Tests: Yes
  • Dynamic Localization: Yes
  • Kubernetes Configuration: Yes
  • Grafana Dashboard: Yes
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • TextTemplateManagement
    • AuditLogging
    • OpenIddictAdmin

The document link you sent looks like it's based on a previous version of the Microservice template and assumes you want to change everything to MongoDb. In our case we want the Abp microservices as well as most of our microservices to use SQL Server and a couple of other microservices to use MongoDB.

In the new Microservice (MemberConfig) I created withAbp Studio I selected MongoDb for the database provider. The solution that was generated is all MongDb including DistributedEvents, FeatureManagement, LanguageManagement, PermissionManagement and SettingManagement.

Below I've copied the DbContext and CloverleafCMSMemberConfigModule deleting what I thought was irrelevant code.

Please tell me what I need to update/add/delete so that the DistributedEvents, FeatureManagement, LanguageManagement, PermissionManagement and SettingManagement packages use SQL Server and the rest of the MemberConfig microservice use MongDb?

It would be very helpful to know that someone on the Abp team has gone through similar steps using a current version of everything (ABP Studio, Abp Suite and Microservice template).

This is the MemberConfigDbContext class

...other usings
using Volo.Abp.LanguageManagement;
using Volo.Abp.PermissionManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.Studio.Client.AspNetCore;
using Volo.Abp.Swashbuckle;
using Volo.Abp.Security.Claims;
using Volo.Abp.SettingManagement.MongoDB;
using Volo.Abp.PermissionManagement.MongoDB;
using Volo.Abp.LanguageManagement.MongoDB;
using Volo.Abp.FeatureManagement.MongoDB;
using Volo.Abp.AuditLogging.MongoDB;
using Volo.Saas.MongoDB;
using Volo.Abp.BlobStoring.Database.MongoDB;
using Volo.Abp.MongoDB.DistributedEvents;

namespace CloverleafCMS.MemberConfig;

[DependsOn(
typeof(BlobStoringDatabaseMongoDbModule),
typeof(AbpSettingManagementMongoDbModule),
typeof(LanguageManagementMongoDbModule),
typeof(AbpPermissionManagementMongoDbModule),
typeof(AbpFeatureManagementMongoDbModule),
typeof(AbpAuditLoggingMongoDbModule),
typeof(SaasMongoDbModule),
... other DependsOn,
typeof(AbpHttpClientModule)
)]

And this is the CloverleafCMSMemberConfigModule class

public class CloverleafCMSMemberConfigModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
var configuration = context.Services.GetConfiguration();
var env = context.Services.GetHostingEnvironment();

var redis = CreateRedisConnection(configuration);

... other configures
ConfigureDatabase(context);
... other configures        
context.Services.TransformAbpClaims();
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
var configuration = context.GetConfiguration();

if (env.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
}

... other code
}

private void ConfigureDatabase(ServiceConfigurationContext context)
{
Configure&lt;AbpDbConnectionOptions&gt;(options =>
{
    options.Databases.Configure("Administration", database =>
    {
        database.MappedConnections.Add(AbpPermissionManagementDbProperties.ConnectionStringName);
        database.MappedConnections.Add(AbpFeatureManagementDbProperties.ConnectionStringName);
        database.MappedConnections.Add(AbpSettingManagementDbProperties.ConnectionStringName);
    });
    
    options.Databases.Configure("AuditLoggingService", database =>
    {
        database.MappedConnections.Add(AbpAuditLoggingDbProperties.ConnectionStringName);
    });

    options.Databases.Configure("SaasService", database =>
    {
        database.MappedConnections.Add(SaasDbProperties.ConnectionStringName);
    });
    
    options.Databases.Configure("LanguageService", database =>
    {
        database.MappedConnections.Add(LanguageManagementDbProperties.ConnectionStringName);
    });
});

context.Services.AddMongoDbContext&lt;MemberConfigDbContext&gt;(options =>
{
    options.AddDefaultRepositories();
});

context.Services.AddAlwaysDisableUnitOfWorkTransaction();
Configure&lt;AbpUnitOfWorkDefaultOptions&gt;(options =>
{
    options.TransactionBehavior = UnitOfWorkTransactionBehavior.Disabled;
});
}

private void ConfigureDistributedEventBus()
{
Configure&lt;AbpDistributedEventBusOptions&gt;(options =>
{
    options.Inboxes.Configure(config =>
    {
        config.UseMongoDbContext&lt;MemberConfigDbContext&gt;();
    });

    options.Outboxes.Configure(config =>
    {
        config.UseMongoDbContext&lt;MemberConfigDbContext&gt;();
    });
});
}

private void ConfigureIntegrationServices()
{
Configure&lt;AbpAspNetCoreMvcOptions&gt;(options =>
{
    options.ExposeIntegrationServices = true;
});

}

 private void ConfigureObjectMapper(ServiceConfigurationContext context
 {
 
context.Services.AddAutoMapperObjectMapper&lt;CloverleafCMSMemberConfigModule&gt;();

Configure&lt;AbpAutoMapperOptions&gt;(options =>
{
    options.AddMaps&lt;CloverleafCMSMemberConfigModule&gt;(validate: true);
});
}

I mistakenly uploaded the same image twice. Here's the screenshot showing the processes running in activity monitory:

Not sure if anyone else using MacOs is having this issue but when running the Microservice solution in Abp Studio, if I stop a service (or all services) it doesn't actually stop the process. If I try to restart the service it just keeps restarting and exiting.

If I navigate to the Swagger url for the service it brings it up (e.g. localhost:44317/swagger) so obviously it hasn't stopped.

The only work around I've found is to restart my Mac.

Below are screenshots of the Adminstration Service supposedly stopped and the exiting with Code 1 continuously after I restart it.

We added the logger statements to all of the services and the auth server but they showed they were the same.

But, our other developer remembered that we had changed our default pass phrases when we deployed our apps to AKS. So the appsettings running localhost and the environment variables in the AKS deployment were different. The SMTP user password in our test tenant must have been set & hashed with localhost before we moved our apps to AKS. He reset the SMTP password with the current default pass phrase settings and the problem went away.

Thank you for pointing us in the right direction. Also, if you can direct to any documentation on how the default pass phrase is used across your packages and templates that would be helpful. This seems to be the only issue resulting from changing the default pass phrases.

Where do I put public override void OnApplicationInitialization(ApplicationInitializationContext context) { var env = context.GetEnvironment(); var app = context.GetApplicationBuilder();

var opt = app.ApplicationServices.GetRequiredService&lt;IOptions&lt;AbpStringEncryptionOptions&gt;>();

Logger.LogInformation("pass phrase is : " + opt.DefaultPassPhrase);
.....

}

What module/program file within the Authserver solution?

Hi,

I don't understand your response. What do you mean?: "This is a problem with your StringEncryption. They used different values, so setting values could not be decrypted."

Different values from what? We have the StringEncryption in the Kubernetes pod config environment variables in the authserver application:

Where else is the StringEncryption?

Why was this closed. You all haven't answered the question.

Showing 1 to 10 of 46 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13