Activities of "rogercprops"

  • ABP Framework version: v9.0.2 (Commercial)
  • UI Type: N/A
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
    • 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
  • Exception message and full stack trace:
  • Error from VS Code debug** Exception has occurred: CLR/System.IO.IOException Exception thrown: 'System.IO.IOException' in System.Private.CoreLib.dll: 'Failed to bind to address http://localhost:81.' Inner exceptions found, see $exception in variables window for more details. Innermost exception System.Net.Sockets.SocketException : Permission denied at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.<BindAsync>d__10.MoveNext() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<

** Full stack trace from debug console**

You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you develop and test your applications.

[17:02:30 INF] Starting CloverleafCMS.ServicesService [17:02:32 INF] Loaded ABP modules: [17:02:32 INF] - CloverleafCMS.ServicesService.CloverleafCMSServicesServiceModule [17:02:32 INF] - Volo.Abp.BlobStoring.Database.EntityFrameworkCore.BlobStoringDatabaseEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainModule [17:02:32 INF] - Volo.Abp.Domain.AbpDddDomainModule [17:02:32 INF] - Volo.Abp.Auditing.AbpAuditingModule [17:02:32 INF] - Volo.Abp.Data.AbpDataModule [17:02:32 INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule [17:02:32 INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule [17:02:32 INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule [17:02:32 INF] - Volo.Abp.Uow.AbpUnitOfWorkModule [17:02:32 INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule [17:02:32 INF] - Volo.Abp.Json.AbpJsonModule [17:02:32 INF] - Volo.Abp.Json.SystemTextJson.AbpJsonSystemTextJsonModule [17:02:32 INF] - Volo.Abp.Json.AbpJsonAbstractionsModule [17:02:32 INF] - Volo.Abp.Timing.AbpTimingModule [17:02:32 INF] - Volo.Abp.Localization.AbpLocalizationModule [17:02:32 INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule [17:02:32 INF] - Volo.Abp.Settings.AbpSettingsModule [17:02:32 INF] - Volo.Abp.Security.AbpSecurityModule [17:02:32 INF] - Volo.Abp.Threading.AbpThreadingModule [17:02:32 INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule [17:02:32 INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyAbstractionsModule [17:02:32 INF] - Volo.Abp.Auditing.AbpAuditingContractsModule [17:02:32 INF] - Volo.Abp.EventBus.AbpEventBusModule [17:02:32 INF] - Volo.Abp.Guids.AbpGuidsModule [17:02:32 INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule [17:02:32 INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingAbstractionsModule [17:02:32 INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule [17:02:32 INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule [17:02:32 INF] - Volo.Abp.Specifications.AbpSpecificationsModule [17:02:32 INF] - Volo.Abp.Caching.AbpCachingModule [17:02:32 INF] - Volo.Abp.Serialization.AbpSerializationModule [17:02:32 INF] - Volo.Abp.Domain.AbpDddDomainSharedModule [17:02:32 INF] - Volo.Abp.BlobStoring.AbpBlobStoringModule [17:02:32 INF] - Volo.Abp.BlobStoring.Database.BlobStoringDatabaseDomainSharedModule [17:02:32 INF] - Volo.Abp.Validation.AbpValidationModule [17:02:32 INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule [17:02:32 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule [17:02:32 INF] - Volo.Abp.Features.AbpFeaturesModule [17:02:32 INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule [17:02:32 INF] - Volo.Abp.LanguageManagement.EntityFrameworkCore.LanguageManagementEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainModule [17:02:32 INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainSharedModule [17:02:32 INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule [17:02:32 INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule [17:02:32 INF] - Volo.Abp.Authorization.AbpAuthorizationModule [17:02:32 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule [17:02:32 INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule [17:02:32 INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule [17:02:32 INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule [17:02:32 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule [17:02:32 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule [17:02:32 INF] - Volo.Saas.EntityFrameworkCore.SaasEntityFrameworkCoreModule [17:02:32 INF] - Volo.Saas.SaasDomainModule [17:02:32 INF] - Volo.Saas.SaasDomainSharedModule [17:02:32 INF] - Volo.Payment.AbpPaymentDomainSharedModule [17:02:32 INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule [17:02:32 INF] - CloverleafCMS.ServicesService.CloverleafCMSServicesServiceContractsModule [17:02:32 INF] - Volo.Abp.UI.AbpUiModule [17:02:32 INF] - Volo.Abp.Commercial.SuiteTemplates.VoloAbpCommercialSuiteTemplatesModule [17:02:32 INF] - Volo.Abp.Application.AbpDddApplicationContractsModule [17:02:32 INF] - Volo.Abp.Autofac.AbpAutofacModule [17:02:32 INF] - Volo.Abp.Castle.AbpCastleCoreModule [17:02:32 INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule [17:02:32 INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule [17:02:32 INF] - Volo.Abp.Http.AbpHttpModule [17:02:32 INF] - Volo.Abp.Http.AbpHttpAbstractionsModule [17:02:32 INF] - Volo.Abp.Minify.AbpMinifyModule [17:02:32 INF] - Volo.Abp.AspNetCore.AbpAspNetCoreAbstractionsModule [17:02:32 INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule [17:02:32 INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule [17:02:32 INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule [17:02:32 INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule [17:02:32 INF] - Volo.Abp.Application.AbpDddApplicationModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule [17:02:32 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule [17:02:32 INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule [17:02:32 INF] - Volo.Abp.EventBus.RabbitMq.AbpEventBusRabbitMqModule [17:02:32 INF] - Volo.Abp.RabbitMQ.AbpRabbitMqModule [17:02:32 INF] - Volo.Abp.BackgroundJobs.RabbitMQ.AbpBackgroundJobsRabbitMqModule [17:02:32 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule [17:02:32 INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule [17:02:32 INF] - Volo.Abp.DistributedLocking.AbpDistributedLockingModule [17:02:32 INF] - Volo.Abp.Studio.Client.AspNetCore.AbpStudioClientAspNetCoreModule [17:02:32 INF] - Volo.Abp.Studio.AbpStudioClientModule [17:02:32 INF] - Volo.Abp.Studio.AbpStudioClientContractsModule [17:02:32 INF] - Volo.Abp.Http.Client.AbpHttpClientModule [17:02:32 INF] - Volo.Abp.RemoteServices.AbpRemoteServicesModule [17:02:32 INF] Trying to acquire the distributed lock for database migration: ServicesService. [17:02:32 INF] Distributed lock is acquired for database migration: ServicesService... [17:02:33 INF] Seeding data... [17:02:33 INF] Distributed lock has been released for database migration: ServicesService... [17:02:34 DBG] Waiting to acquire the distributed lock for saving external localizations... [17:02:34 INF] Saving external localizations... [17:02:34 INF] Initialized all ABP modules. [17:02:35 WRN] Overriding address(es) 'http://localhost:44344'. Binding to endpoints defined via IConfiguration and/or UseKestrel() instead. [17:02:35 INF] Unable to bind to http://localhost:81 on the IPv4 loopback interface: 'Permission denied'. [17:02:35 INF] Unable to bind to http://localhost:81 on the IPv6 loopback interface: 'Permission denied'. [17:02:35 ERR] Hosting failed to start System.IO.IOException: Failed to bind to address http://localhost:81. ---> System.AggregateException: One or more errors occurred. (Permission denied) (Permission denied) ---> System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_01.&lt;&lt;StartAsync&gt;g__OnBind|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.LocalhostListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken) --- End of inner exception stack trace --- ---> (Inner Exception [#1](https://abp.io/QA/Questions/1)) System.Net.Sockets.SocketException (13): Permission denied at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint) at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.&lt;&gt;c__DisplayClass28_01.<

--- End of inner exception stack trace ---

  • Steps to reproduce the issue:
    • Created a new solution in ABP Studio using the Microservice template
    • Created a micro-service with standard endpoints and created an entity for the service using Abp Suite (no issues)
    • Updated the micro-service to add a Grpc endpoint according to this documentation: Using Grpc
    • Also looked at this article referenced in the documentation Using gRPC with the ABP Framework | ABP Community but it is a different approach so we didn't follow it.

From appsettings.development.json { "App": { "EnablePII": true }, "Kestrel": { "Endpoints": { "Http": { "Url": "http://localhost:5000", "Protocols": "Http1AndHttp2" }, "Https": { "Url": "https://localhost:44344", "Protocols": "Http1AndHttp2" }, "gRPC": { "Url": "http://localhost:81", "Protocols": "Http2" } } }

}

Let me know if you need additional info to help debug this issue.

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);
});
}
  • ABP Framework version: Commercial 9.04
  • UI Type: N/A
  • Database System: EF Core & MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: N/A
  • Steps to reproduce the issue:

We created a new Microservice solution using Abp Studio and selected EF Core as the database. So all of the Abp generated microservices (Administration, AuditLogging, Identity, etc.) are using MS Sql databases

Most of our microservices use EF Core but we have a couple that use MongoDB.

I added a new microservice module using Studio and selected MongoDB as the database provider. I then created an entity using Abp Suite and generated all of the code. In the appsettings file the connection strings for the Abp microservices are correctly pointing to the SQL Server databases. I updated the connection string for the new Microservice with the connection string to the MongoDB project.

When I ran the new microservice it correctly created the collections for the new Microservice but it also added collections for the Abp microservices (AbpFeatureGroups, AbpFeatureValues, AbpPermissions, etc) in the mongo database.

Looking at the code I see these in the application module. 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;

I updated the csproj file and the module to use EF Core packages but am getting errors configuring the database for the microservice entity.

I then reviewed the answer to this support question https://abp.io/support/questions/1269/using-MongoDB-in-microservice-service-inside-microservice-solution-which-uses-efcore but it appears written for v8 and it seems there are significant changes to the microservice template in V9.

Is there a document or can you provide detailed steps to update the microservice to use EntityFrameworkCore for the Abp services and MongoDb for our microservice?

Thank you in advance.

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

  • ABP Framework version: v9.0.4
  • ABP Studio version: 0.9.23
  • UI Type: N/A
  • Database System: EF Core
  • Tiered (for MVC) or Auth Server Separated (for Angular): Yes
  • Exception message and full stack trace: Port 44370 is in use. Please close the application that uses this port and try again.
  • Steps to reproduce the issue:

I submitted a response the to the community ABP Studio bugs support question but haven't seen a response.

We're using the microservices template and I'm running ABP Studio on a Macbook M1 with Mac OS Sequoia 15.3.1.

When I start the applications/services from Studio and then stop them they don't actually stop. So the next time I try to start them I get the message that the port is already in use. I've tried killing the processes on those ports but I see this message in the logs for a service when I try to restart it. Already closed: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=320, text='CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'', classId=0, methodId=0

The only work around I've found is to restart my Mac which if I do this multiple times a day it adds up to a lot of wasted time.

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 51 to 60 of 114 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.