I get the below error when trying to run my solution's Auth and Web projects. No coding change have been code since the last time it worked. We are a commercial user and have full source code.
Ssystem.IO.FileNotFoundException: Could not load file or assembly 'Volo.Abp.Core, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Volo.Abp.Core, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder
1 derivedAttributes)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit)
at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\AbpModuleHelper.cs:line 25
at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\AbpModuleHelper.cs:line 56 at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\AbpModuleHelper.cs:line 15 at Volo.Abp.Modularity.ModuleLoader.FillModules(List
1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\ModuleLoader.cs:line 49
at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\ModuleLoader.cs:line 34
at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Modularity\ModuleLoader.cs:line 20
at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\AbpApplicationBase.cs:line 144
at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\AbpApplicationBase.cs:line 63 at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action
1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\AbpApplicationWithExternalServiceProvider.cs:line 14
at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\AbpApplicationFactory.cs:line 92 at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action
1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Volo\Abp\AbpApplicationFactory.cs:line 42
at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.Core\Microsoft\Extensions\DependencyInjection\ServiceCollectionApplicationExtensions.cs:line 32 at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action
1 optionsAction) in C:\src710\StructureCloud.NET\ABP\framework\src\Volo.Abp.AspNetCore\Microsoft\Extensions\DependencyInjection\WebApplicationBuilderExtensions.cs:line 17
at CFData.StructureWeb.Program.Main(String[] args) in C:\src710\StructureCloud.NET\aspnet-core\src\StructureWeb.AuthServer\Program.cs:line 43
It seems that the 1st time I run the DBMigrator project I get errors related to a connection to the TestWebHost DB on the server.
Please advise.
[16:18:14 INF] Started database migrations...
[16:18:14 INF] Migrating schema for host database...
[16:18:16 ERR] An error occurred using the connection to database 'TestWebHost' on server ''.
[16:18:17 ERR] 3D000: database "TestWebHost" does not exist
Npgsql.PostgresException (0x80004005): 3D000: database "TestWebHost" does not exist
at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|222_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|204_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|28_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|45_0(Boolean async, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionAsync(CancellationToken cancellationToken)
at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider1.CreateDbContextWithTransactionAsync(IUnitOfWork unitOfWork) in C:\Src702\ABP\framework\src\Volo.Abp.EntityFrameworkCore\Volo\Abp\Uow\EntityFrameworkCore\UnitOfWorkDbContextProvider.cs:line 272 at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider
1.CreateDbContextAsync(IUnitOfWork unitOfWork) in C:\Src702\ABP\framework\src\Volo.Abp.EntityFrameworkCore\Volo\Abp\Uow\EntityFrameworkCore\UnitOfWorkDbContextProvider.cs:line 160
at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider1.CreateDbContextAsync(IUnitOfWork unitOfWork, String connectionStringName, String connectionString) in C:\Src702\ABP\framework\src\Volo.Abp.EntityFrameworkCore\Volo\Abp\Uow\EntityFrameworkCore\UnitOfWorkDbContextProvider.cs:line 135 at Volo.Abp.Uow.EntityFrameworkCore.UnitOfWorkDbContextProvider
1.GetDbContextAsync()
at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository2.GetDbSetAsync() in C:\Src702\ABP\framework\src\Volo.Abp.EntityFrameworkCore\Volo\Abp\Domain\Repositories\EntityFrameworkCore\EfCoreRepository.cs:line 74 at Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository
2.GetListAsync(Boolean includeDetails, CancellationToken cancellationToken) in C:\Src702\ABP\framework\src\Volo.Abp.EntityFrameworkCore\Volo\Abp\Domain\Repositories\EntityFrameworkCore\EfCoreRepository.cs:line 226
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue1.ProceedAsync() in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAbpMethodInvocationAdapterWithReturnValue.cs:line 24 at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) in C:\Src702\ABP\framework\src\Volo.Abp.Uow\Volo\Abp\Uow\UnitOfWorkInterceptor.cs:line 49 at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter
1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAsyncAbpInterceptorAdapter.cs:line 29 at Volo.Abp.FeatureManagement.StaticFeatureSaver.UpdateChangedFeatureGroupsAsync(IEnumerable
1 featureGroupRecords) in C:\Src702\ABP\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo\Abp\FeatureManagement\StaticFeatureSaver.cs:line 134
at Volo.Abp.FeatureManagement.StaticFeatureSaver.SaveAsync() in C:\Src702\ABP\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo\Abp\FeatureManagement\StaticFeatureSaver.cs:line 102
at Volo.Abp.FeatureManagement.StaticFeatureSaver.SaveAsync() in C:\Src702\ABP\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo\Abp\FeatureManagement\StaticFeatureSaver.cs:line 116
at Volo.Abp.FeatureManagement.StaticFeatureSaver.SaveAsync() in C:\Src702\ABP\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo\Abp\FeatureManagement\StaticFeatureSaver.cs:line 118
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAbpMethodInvocationAdapter.cs:line 23
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) in C:\Src702\ABP\framework\src\Volo.Abp.Uow\Volo\Abp\Uow\UnitOfWorkInterceptor.cs:line 49
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func
3 proceed) in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAsyncAbpInterceptorAdapter.cs:line 20
at Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule.<>c__DisplayClass6_0.<<SaveStaticFeaturesToDatabaseAsync>b__1>d.MoveNext() in C:\Src702\ABP\modules\feature-management\src\Volo.Abp.FeatureManagement.Domain\Volo\Abp\FeatureManagement\AbpFeatureManagementDomainModule.cs:line 136
I've been getting this error recently and don't understand why. I have not changed anything regarding the language or localization text records.
Please advise
[15:58:15 INF] Started database migrations...
[15:58:15 INF] Migrating schema for host database...
[15:58:20 INF] Executing host database seed...
[15:59:54 ERR] value length must be equal to or lower than 65536! (Parameter 'value')
System.ArgumentException: value length must be equal to or lower than 65536! (Parameter 'value')
at Volo.Abp.Check.Length(String value, String parameterName, Int32 maxLength, Int32 minLength) in C:\Src702\ABP\framework\src\Volo.Abp.Core\Volo\Abp\Check.cs:line 160
at Volo.Abp.LanguageManagement.External.LocalizationTextRecord..ctor(Guid id, String resourceName, String cultureName, String value) in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\LocalizationTextRecord.cs:line 33
at Volo.Abp.LanguageManagement.External.ExternalLocalizationSaver.UpdateResourceTextChangesAsync(SaveContext context, LocalizationResource resource, String cultureName, IStringLocalizer localizer) in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\ExternalLocalizationSaver.cs:line 339
at Volo.Abp.LanguageManagement.External.ExternalLocalizationSaver.UpdateResourceTextChangesAsync(SaveContext context, LocalizationResource resource, String cultureName, IStringLocalizer localizer) in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\ExternalLocalizationSaver.cs:line 355
at Volo.Abp.LanguageManagement.External.ExternalLocalizationSaver.UpdateResourceChangesAsync(SaveContext context, LocalizationResource resource) in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\ExternalLocalizationSaver.cs:line 176
at Volo.Abp.LanguageManagement.External.ExternalLocalizationSaver.SaveAsync() in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\ExternalLocalizationSaver.cs:line 85
at Volo.Abp.LanguageManagement.External.ExternalLocalizationSaver.SaveAsync() in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\External\ExternalLocalizationSaver.cs:line 91
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo)
at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAbpMethodInvocationAdapter.cs:line 23
at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) in C:\Src702\ABP\framework\src\Volo.Abp.Uow\Volo\Abp\Uow\UnitOfWorkInterceptor.cs:line 49
at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func
3 proceed) in C:\Src702\ABP\framework\src\Volo.Abp.Castle.Core\Volo\Abp\Castle\DynamicProxy\CastleAsyncAbpInterceptorAdapter.cs:line 20
at Volo.Abp.LanguageManagement.LanguageManagementDomainModule.<>c__DisplayClass6_1.<<SaveLocalizationsAsync>b__2>d.MoveNext() in C:\Src702\ABP-Pro-Modules\language-management\src\Volo.Abp.LanguageManagement.Domain\Volo\Abp\LanguageManagement\LanguageManagementDomainModule.cs:line 134
I am still unable to get my solution working in a deployed local docker environment. Here is the log and docker-compose file that I'm using. I get a 400 error after I hit the login button after entering the admin credentials.
[12:19:26 INF] The authorization request was successfully validated. [12:19:26 INF] Executing endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' [12:19:26 INF] Route matched with {action = "Handle", controller = "Authorize", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] HandleAsync() on controller Volo.Abp.OpenIddict.Controllers.AuthorizeController (Volo.Abp.OpenIddict.AspNetCore). [12:19:26 INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy [12:19:26 INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. [12:19:27 INF] The authorization response was successfully returned to 'https://localhost:44353/signin-oidc' using the form post response mode: { "code": "[redacted]", "id_token": "[redacted]", "state": "CfDJ8JNGHrywwLhJnvwAUL66UAxPdLLBfPpa7emn0WrG6bMsqF6V2Nv9xIt9U0xN9zs7ZqO_13mO26aijrLaz-f0_R3MU-VKISz_Pf8xWkLzNzPvJwEvudhPzbQoIXyFavyCIJK5hbdYBQicpQSOV_oKWdVNo_ITCpkEIahJpg0S51mXmskdbOKihz_FAfjCyzRdfxPqVocSAPKztHaq0a-wqSGKWjEPO-AKtr_XIiij7Tj1xeFrFhl9UcP6mQdXHKg4Xu0ysxgszeb2ZeAMKPV2SOS0DT8K__ikGf8N_JhDdQGP6yiX-aH7vO6QWGMKDNN6Fg", "iss": "https://localhost:44334/" }. [12:19:27 INF] Executed action Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 637.4761ms [12:19:27 INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' [12:19:27 INF] Request finished HTTP/2 GET https://localhost:44334/connect/authorize?client_id=StructureWeb_Web&redirect_uri=https%3A%2F%2Flocalhost%3A44353%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20StructureWeb&response_mode=form_post&nonce=638150843365765353.NmRjZTI4NzUtNmRjZS00YmQxLWFjMTMtZTkzYWE5ZTMxNWM3ZTU5MDk2NjAtMzM5ZC00YThjLTg1MjAtMTJkZDAwMTA2ODA4&state=CfDJ8JNGHrywwLhJnvwAUL66UAxPdLLBfPpa7emn0WrG6bMsqF6V2Nv9xIt9U0xN9zs7ZqO_13mO26aijrLaz-f0_R3MU-VKISz_Pf8xWkLzNzPvJwEvudhPzbQoIXyFavyCIJK5hbdYBQicpQSOV_oKWdVNo_ITCpkEIahJpg0S51mXmskdbOKihz_FAfjCyzRdfxPqVocSAPKztHaq0a-wqSGKWjEPO-AKtr_XIiij7Tj1xeFrFhl9UcP6mQdXHKg4Xu0ysxgszeb2ZeAMKPV2SOS0DT8K__ikGf8N_JhDdQGP6yiX-aH7vO6QWGMKDNN6Fg&x-client-SKU=ID_NET6_0&x-client-ver=6.15.1.0 - - - 200 2021 text/html;charset=UTF-8 671.7820ms [12:19:27 INF] Request starting HTTP/1.1 POST http://structureweb-authserver/connect/token application/x-www-form-urlencoded 188 [12:19:27 INF] The request URI matched a server endpoint: Token. [12:19:27 INF] The token request was successfully extracted: { "client_id": "StructureWeb_Web", "client_secret": "[redacted]", "code": "[redacted]", "grant_type": "authorization_code", "redirect_uri": "https://localhost:44353/signin-oidc" }. [12:19:27 INF] The response was successfully returned as a JSON document: { "error": "invalid_grant", "error_description": "The issuer associated to the specified token is not valid.", "error_uri": "https://documentation.openiddict.com/errors/ID2088" }. [12:19:27 INF] Request finished HTTP/1.1 POST http://structureweb-authserver/connect/token application/x-www-form-urlencoded 188 - 400 184 application/json;charset=UTF-8 107.0345ms [12:19:35 INF] Application is shutting down...
version: '3.7'
services:
structureweb-web:
image: cfdata/structureweb-web:latest
container_name: structureweb-web
hostname: structureweb-web
build:
context: ../../../
dockerfile: aspnet-core/src/StructureWeb.Web/Dockerfile.local
environment:
- ASPNETCORE_URLS=https://+:443;http://+:80;
- ASPNETCORE_ENVIRONMENT=Production
- Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx
- Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc
- App__SelfUrl=https://localhost:44353
- App__CorsOrigins=https://localhost:44334
- AuthServer__RequireHttpsMetadata=false
- AuthServer__IsContainerizedOnLocalhost=true
- AuthServer__Authority=https://localhost:44334/
- RemoteServices__Default__BaseUrl=http://structureweb-host
- RemoteServices__AbpAccountPublic__BaseUrl=http://structureweb-authserver
- AuthServer__MetaAddress=http://structureweb-authserver
- StringEncryption__DefaultPassPhrase=hsaEIdKpXAUfEH5D
- ConnectionStrings__Default=Host=xxx.xxx.xxx.xxx;Port=5432;Database=StructureWebHost;User ID=xxx;Password=xxx;
- Redis__Configuration=redis
- RabbitMQ__Connections__Default__HostName=rabbitmq
- RabbitMQ__Connections__Default__UserName=guest
- RabbitMQ__Connections__Default__Password=guest
- RabbitMQ__EventBus__ClientName=StructureWeb
- RabbitMQ__EventBus__ExchangeName=StructureWeb
- RabbitMQ__EventBus__ConnectionName=PrimaryConnection
ports:
- "44353:443"
depends_on:
- structureweb.httpapi.host
restart: on-failure
volumes:
- ./certs:/root/certificate
- ./aspnet-core/src/tokens:/root/.abp/cli/
networks:
- abp-network
structureweb.httpapi.host:
container_name: structureweb-host
hostname: structureweb-host
image: cfdata/structureweb-api:latest
build:
context: ../../../
dockerfile: aspnet-core/src/StructureWeb.HttpApi.Host/Dockerfile.local
environment:
- ASPNETCORE_URLS=https://+:443;http://+:80;
- ASPNETCORE_ENVIRONMENT=Production
- Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx
- Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc
- App__SelfUrl=https://localhost:44354
- App__HealthCheckUrl=http://structureweb-host/health-status
- AuthServer__RequireHttpsMetadata=false
- AuthServer__Authority=http://structureweb-authserver
- ConnectionStrings__Default=Host=xxx.xxx.xxx.xxx;Port=5432;Database=StructureWebHost;User ID=xxx;Password=xxx;
- StringEncryption__DefaultPassPhrase=hsaEIdKpXAUfEH5D
- Redis__Configuration=redis
- RabbitMQ__Connections__Default__HostName=rabbitmq
- RabbitMQ__Connections__Default__UserName=guest
- RabbitMQ__Connections__Default__Password=guest
- RabbitMQ__EventBus__ClientName=StructureWebHttpApi
- RabbitMQ__EventBus__ExchangeName=StructureWeb
- RabbitMQ__EventBus__ConnectionName=PrimaryConnection
ports:
- "44354:443"
depends_on:
redis:
condition: service_healthy
restart: on-failure
volumes:
- ./certs:/root/certificate
networks:
- abp-network
structureweb-authserver:
container_name: structureweb-authserver
image: cfdata/structureweb-authserver:latest
build:
context: ../../../
dockerfile: aspnet-core/src/StructureWeb.AuthServer/Dockerfile.local
environment:
- ASPNETCORE_URLS=https://+:443;http://+:80;
- ASPNETCORE_ENVIRONMENT=Production
- Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx
- Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc
- App__SelfUrl=https://localhost:44334
- App__CorsOrigins=https://localhost:44353,https://localhost:44354
- AuthServer__RequireHttpsMetadata=false
- AuthServer__Authority=http://structureweb-authserver
- StringEncryption__DefaultPassPhrase=hsaEIdKpXAUfEH5D
- ConnectionStrings__Default=Host=xxx.xxx.xxx.xxx;Port=5432;Database=StructureWebHost;User ID=xxx;Password=xxx;
- Redis__Configuration=redis
- RabbitMQ__Connections__Default__HostName=rabbitmq
- RabbitMQ__Connections__Default__UserName=guest
- RabbitMQ__Connections__Default__Password=guest
- RabbitMQ__EventBus__ClientName=StructureWebIdentityServer
- RabbitMQ__EventBus__ExchangeName=StructureWeb
- RabbitMQ__EventBus__ConnectionName=PrimaryConnection
ports:
- "44334:443"
depends_on:
redis:
condition: service_healthy
restart: on-failure
volumes:
- ./certs:/root/certificate
- ./aspnet-core/src/tokens:/root/.abp/cli/
networks:
- abp-network
db-migrator:
image: cfdata/structureweb-db-migrator:latest
container_name: structureweb-db-migrator
build:
context: ../../
dockerfile: aspnet-core/src/StructureWeb.DbMigrator/Dockerfile.local
environment:
- OpenIddict__Applications__StructureWeb_Web__RootUrl=https://localhost:44353
- OpenIddict__Applications__StructureWeb_Swagger__RootUrl=https://localhost:44354
- ConnectionStrings__Default=Host=xxx.xxx.xxx.xxx;Port=5432;Database=StructureWebHost;User ID=xxx;Password=xxx;
- Redis__Configuration=redis
- RabbitMQ__Connections__Default__HostName=rabbitmq
- RabbitMQ__Connections__Default__UserName=guest
- RabbitMQ__Connections__Default__Password=guest
- RabbitMQ__EventBus__ClientName=StructureWebDbMigrator
- RabbitMQ__EventBus__ExchangeName=StructureWeb
- RabbitMQ__EventBus__ConnectionName=PrimaryConnection
networks:
- abp-network
redis: container_name: redis image: redis:alpine ports: - "6379:6379" networks: - abp-network healthcheck: test: ["CMD", "redis-cli","ping"]
rabbitmq: container_name: rabbitmq image: rabbitmq:management-alpine ports: - "15672:15672" - "5672:5672" networks: - abp-network
elsaserver: container_name: elsaserver image: elsaworkflows/elsa-dashboard-and-server:latest ports: - "13000:80" networks: - abp-network
networks: abp-network: name: structureweb-network driver: bridge
Hi,
I would like support to provide to me or tell me how to deploy a tiered/MVC/PostegreSQL generated from ABP suite to my local docker environment. Since the generated docker-compose.yml file seems incomplete at best, I am at a loss as to how I can make an generated ABP solution work within a local docker environment. I'm going on 2 weeks now with no success.
Thanks.
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ 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 followings:
Hi,
I am opening another ticket on my issue because at this point I have exhausted all ideas/attempts at getting a new record into the database from an application service. Previously you told me that you had no issue with this sample project however when I run it although it may work the first and second time, but eventually it gives me a 'Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled).' error. At this point I'm out of ideas and need assistance getting this test solution to work consistently every time.
See the below link for the git repo and the steps to reproduce. What does not make sense is that I can call my custom application services and subsequent associated repository methods when the logic is in a class inherited from AbpViewComponent (Which is in the web project too) but not from just a normal class (DashboardStorageExtension). Make sure you get the latest version of this project from github please.
Run the migrations associated with the solution Login as host user/admin From the Setup Menu click 'Setup' From the resulting Dashboard list page choose the 'New Dashboard' button on the right. Click 'Create' in the middle of the screen Drag a dashboard control onto the main part of the designer From the hamburger menu in the upper left click the 'Save' option
The error occurs in the DashboardAppService class on the below highlighted line. For some reason it cannot insert a new record into the table. I was able to get past the previous issue of the service itself not being injected properly but now it seems like I cannot do anything database related from my injected service.
I've given access to https://github.com/maliming for the git repository that contains the example project showing the issue
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ 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 followings:
Hi,
I've created another test project showing the issue I am not having with being able to save a entity to the database. See the below link for the git repo and the steps to reproduce. What does not make sense is that I can call my custom application services and subsequent associated repository methods when the logic is in a class inherited from AbpViewComponent (Which is in the web project too) but not from just a normal class (DashboardStorageExtension).
Run the migrations associated with the solution Login as host user/admin From the Setup Menu click 'Setup' From the resulting Dashboard list page choose the 'New Dashboard' button on the right. Click 'Create' in the middle of the screen Drag a dashboard control onto the main part of the designer From the hamburger menu in the upper left click the 'Save' option
The error occurs in the DashboardAppService class on the below highlighted line. For some reason it cannot insert a new record into the table. I was able to get past the previous issue of the service itself not being injected properly but now it seems like I cannot do anything database related from my injected service.
I've given access to https://github.com/maliming for the git repository that contains the example project showing the issue
If you're creating a bug/problem report, please include followings:
I have 3 menu items at the 2nd structural level of my left side nav menu. The structure is as follows. As shown in the screenshot when I click the Test Sub Menu the 3 menu items belonging to Test Sub Menu do not show. If you want to reproduce this issue just add the below code to your class that implements the IMenuContributor interface.
Test Menu 1 Test Sub Menu Test Menu Item 1 Test Menu Item 2 Test Menu Item 3
Code to reproduce
var miMenu1 = new ApplicationMenuItem(
name: "TestMenu1",
displayName: "Test Menu 1",
elementId: "TestMenu1",
order: 1
).RequireAuthenticated();
var miMenu1SubMenu1 = new ApplicationMenuItem(
name: "TestMenu1SubMenu1",
displayName: "Test Sub Menu",
elementId: "TestMenu1SubMenu1",
order: 1
).RequireAuthenticated();
miMenu1SubMenu1.Items.Add(
new ApplicationMenuItem (
"TestMenuItem1",
"Test Menu Item 1",
"TestMenuItem1",
order: 1
).RequireAuthenticated());
miMenu1SubMenu1.Items.Add(
new ApplicationMenuItem(
"TestMenuItem2",
"Test Menu Item 2",
"TestMenuItem2",
order: 2
).RequireAuthenticated());
miMenu1SubMenu1.Items.Add(
new ApplicationMenuItem(
"TestMenuItem3",
"Test Menu Item 3",
"TestMenuItem3",
order: 3
).RequireAuthenticated());
miMenu1.Items.Add(miMenu1SubMenu1);
//Add Application Security Group menu item
context.Menu.GetAdministration().AddItem(miMenu1);
I am having an issue injecting ANY repository into a ApplicationService class that is being used by the DevExpress Dashboard control to 'Save' a dashboard definition to the database. If I inject it via the class constructor the project throws an error and I try to get the repository manually using the .GetRequiredService<> method it tells me the repository has not been registered.
I've created a sample application to show the issue. If you tell me your github username I will give you access to it and tell you exactly how to reproduce it.
Thanks.
Steve
We are using Stripe to bill our customers under defined conditions from our application. For example, when a customer adds a new user we want our application to automatically charge their credit card that we have on file in an automated way without any Stripe screens coming up. It appears ABP's implementation of the stripe gateway requires additional input on the stripe screens to complete the transaction. Is there a way for us to pass this additional information required in the messaging to Stripe so that additional input is not needed via user intereaction?
Thanks.