Activities of "chrisalves"

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

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

Template: app Created ABP Studio Version: 0.9.25 Current ABP Studio Version: 1.0.1 ABP Suite: 9.2.0 ABP framework: 9.2.1 Tiered: Yes Multi-Tenancy: Yes UI Framework: blazor-server Theme: leptonx Theme Style: system Run Install Libs: Yes Database Provider: ef Database Management System: sqlserver Separate Tenant Schema: Yes Create Initial Migration: Yes Run Db Migrator: Yes Mobile Framework: maui Public Website: Yes Include Tests: Yes Kubernetes Configuration: No Distributed Event Bus: rabbitmq Use Local References: No Optional Modules: GDPR FileManagement TextTemplateManagement LanguageManagement AuditLogging Chat OpenIddictAdmin Selected Languages: English, English (United Kingdom), 简体中文, EspaƱol, Ų§Ł„Ų¹Ų±ŲØŁŠŲ©, ą¤¹ą¤æą¤Øą„ą¤¦ą„€, PortuguĆŖs (Brasil), FranƧais, Русский, Deutsch (Deuthschland), TürkƧe, Italiano, ČeÅ”tina, Magyar, RomĆ¢nă (RomĆ¢nia), Svenska, Suomi, Slovenčina, ƍslenska, 繁體中文

Default Language: English

Create Command: abp new NewApp -t app --tiered --ui-framework blazor-server --mobile maui --database-provider ef --database-management-system sqlserver --theme leptonx --separate-tenant-schema --public-website --without-cms-kit --dont-run-bundling -chat -file-management

Hello!

I am trying to implement the integration of the original File components and implementation generated by Abp Suite with my implementation of Azure Blob Storage and im facing some difficulties in the process.

As abp already implements with the File property type of abp suite, the file is been saved on a container pointing to the local database with its FileDescriptor within the function UploadFileAsync():

I've followed the documentation present in: https://abp.io/docs/latest/framework/infrastructure/blob-storing https://abp.io/docs/latest/framework/infrastructure/blob-storing/azure

However, the documentation does not clearly outline the best approach to replace the default local storage mechanism with Azure Blob Storage, especially while maintaining compatibility with the components generated by ABP Suite.

I would appreciate guidance on the recommended way to redirect file uploads to Azure Blob Storage instead of the local container, while ensuring that metadata and file descriptors continue to be handled correctly by the framework.

Thanks.

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

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • Template: app
  • Created ABP Studio Version: 1.0.2
  • Current ABP Studio Version: 1.0.2
  • Tiered: Yes
  • Multi-Tenancy: Yes
  • UI Framework: blazor-server
  • Theme: leptonx
  • Theme Style: system
  • Theme Menu Placement: side
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: sqlserver
  • Separate Tenant Schema: Yes
  • Create Initial Migration: Yes
  • Run Db Migrator: Yes
  • Mobile Framework: maui
  • Public Website: Yes
  • Social Login: Yes
  • Include Tests: Yes
  • Kubernetes Configuration: No
  • Distributed Event Bus: rabbitmq
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • FileManagement
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • Chat
    • OpenIddictAdmin
  • Selected Languages: English, English (United Kingdom), 简体中文, EspaƱol, Ų§Ł„Ų¹Ų±ŲØŁŠŲ©, ą¤¹ą¤æą¤Øą„ą¤¦ą„€, PortuguĆŖs (Brasil), FranƧais, Русский, Deutsch (Deuthschland), TürkƧe, Italiano, ČeÅ”tina, Magyar, RomĆ¢nă (RomĆ¢nia), Svenska, Suomi, Slovenčina, ƍslenska, 繁體中文
  • Default Language: English
  • Create Command: abp new NewApp -t app --tiered --ui-framework blazor-server --mobile maui --database-provider ef --database-management-system sqlserver --theme leptonx --separate-tenant-schema --public-website --without-cms-kit --dont-run-bundling -chat -file-management
  • Exception message and full stack trace:
    [19:43:19 INF] Request starting HTTP/2 GET [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js) \- null null
    [19:43:19 INF] The access\_token is active.
    [19:43:19 DBG] Get dynamic claims cache for user: e69f975f-0a44-9f37-92d2-3a1b2258a050
    [19:43:19 INF] Request finished HTTP/2 GET [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js) \- 404 0 null 28\.306ms
    [19:43:19 INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js), Response status code: 404
    [19:43:20 INF] Start processing HTTP request GET [https://localhost:44354/api/abp/api-definition](https://localhost:44354/api/abp/api-definition)
    [19:43:20 INF] Sending HTTP request GET [https://localhost:44354/api/abp/api-definition](https://localhost:44354/api/abp/api-definition)
    [19:43:20 WRN] Unhandled exception rendering component: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    TypeError: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    TypeError: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    at Microsoft\.JSInterop\.JSRuntime\.InvokeAsync\[TValue\]\(Int64 targetInstanceId\, String identifier\, Object\[\] args\)
    at Catalog.Blazor.Pages.Catalog.Products.OnAfterRenderAsync(Boolean firstRender) in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 92
    at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
    [19:43:20 ERR] Unhandled exception in circuit 'pD6-ssltpTDcMHVVm\_-6EDmBcqO\_PHTwGURVr-GBUOw'.
    Microsoft.JSInterop.JSException: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    TypeError: Failed to fetch dynamically imported module: [https://localhost:44312/Pages/Products.razor.js](https://localhost:44312/Pages/Products.razor.js)
    at Microsoft\.JSInterop\.JSRuntime\.InvokeAsync\[TValue\]\(Int64 targetInstanceId\, String identifier\, Object\[\] args\)
    at Catalog.Blazor.Pages.Catalog.Products.OnAfterRenderAsync(Boolean firstRender) in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 92
    at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
    [19:43:20 INF] Executed endpoint 'Microsoft.AspNetCore.Routing.RouteEndpoint'
    [19:43:20 INF] Request finished HTTP/2 CONNECT [https://localhost:44312/\_blazor?id=Q970FyOnqG6UQyr7VOT6vw](https://localhost:44312/_blazor?id=Q970FyOnqG6UQyr7VOT6vw) \- 200 null null 3553\.1341ms
    [19:43:20 INF] Executed endpoint '/signalr-hubs/chat'
    [19:43:20 INF] Executed endpoint '/signalr-hubs/chat'
    [19:43:20 INF] Request finished HTTP/1.1 GET [https://localhost:44312/signalr-hubs/chat?id=D7GtX4N-i8j3TvV\_Jj2hBw](https://localhost:44312/signalr-hubs/chat?id=D7GtX4N-i8j3TvV_Jj2hBw) \- 101 null null 3416\.3706ms
    [19:43:20 INF] Request finished HTTP/1.1 GET [https://localhost:44312/signalr-hubs/chat?id=kQqIwGkbkj0dsYVajWGLKA](https://localhost:44312/signalr-hubs/chat?id=kQqIwGkbkj0dsYVajWGLKA) \- 101 null null 3416\.2868ms
    [19:43:20 INF] Connection id "0HNE3U3HKH7SD", Request id "0HNE3U3HKH7SD:00000035": the application completed without reading the entire request body.
    [19:43:20 INF] Received HTTP response headers after 180.5206ms - 200
    [19:43:20 INF] End processing HTTP request after 180.8364ms - 200
    [19:43:20 WRN] Unhandled exception rendering component: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed.
    System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed.
    at Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException()
    at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
    at System.Lazy`1.CreateValue() at Volo.Abp.DependencyInjection.CachedServiceProviderBase.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Volo.Abp.DependencyInjection.AbpLazyServiceProvider.LazyGetRequiredService[T]() at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.get\_ClientOptions()
    at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1\.RequestAsync\[T\]\(ClientProxyRequestContext requestContext\)
    at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptorClientProxy`1.CallRequestAsync[T](ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1\.CallRequestAsync\[T\]\(ClientProxyRequestContext context\)
    at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.GetResultAsync(Task task, Type resultType) at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.InterceptAsync(IAbpMethodInvocation invocation)
    at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
    at Castle\.DynamicProxy\.AsyncInterceptorBase\.ProceedAsynchronous\[TResult\]\(IInvocation invocation\, IInvocationProceedInfo proceedInfo\)
    at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) at Catalog.Blazor.Pages.Catalog.Products.GetProductsAsync() in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 135 at Catalog.Blazor.Pages.Catalog.Products.OnDataGridReadAsync(DataGridReadDataEventArgs`1 e) in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 169
    at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
    at Blazorise.DataGrid.DataGrid`1.HandleReadData(CancellationToken cancellationToken) at Blazorise.DataGrid.DataGrid`1.HandleReadData(CancellationToken cancellationToken)
    at Blazorise.DataGrid.DataGrid`1.ReloadInternal(CancellationToken cancellationToken) at Blazorise.DataGrid.DataGrid`1.Reload(CancellationToken cancellationToken)
    at Blazorise.DataGrid.DataGrid`1.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) [19:43:20 ERR] Unhandled exception in circuit 'pD6-ssltpTDcMHVVm_-6EDmBcqO_PHTwGURVr-GBUOw'. System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. at Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
    at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue()
    at Volo.Abp.DependencyInjection.CachedServiceProviderBase.GetService(Type serviceType)
    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
    at Volo.Abp.DependencyInjection.AbpLazyServiceProvider.LazyGetRequiredService[T]()
    at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.get_ClientOptions() at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync(ClientProxyRequestContext requestContext)
    at Volo.Abp.Http.Client.ClientProxying.ClientProxyBase`1.RequestAsync[T](ClientProxyRequestContext requestContext) at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptorClientProxy`1\.CallRequestAsync\[T\]\(ClientProxyRequestContext requestContext\)
    at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.CallRequestAsync[T](ClientProxyRequestContext context) at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.GetResultAsync(Task task, Type resultType)
    at Volo.Abp.Http.Client.DynamicProxying.DynamicHttpProxyInterceptor`1.InterceptAsync(IAbpMethodInvocation invocation) at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync()
    at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)
    at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed)
    at Catalog.Blazor.Pages.Catalog.Products.GetProductsAsync() in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 135
    at Catalog.Blazor.Pages.Catalog.Products.OnDataGridReadAsync(DataGridReadDataEventArgs`1 e) in C:\Dev\NewApp\Modules\catalog\src\Catalog.Blazor\Pages\Catalog\Products.razor.cs:line 169 at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Blazorise.DataGrid.DataGrid`1.HandleReadData(CancellationToken cancellationToken)
    at Blazorise.DataGrid.DataGrid`1.HandleReadData(CancellationToken cancellationToken) at Blazorise.DataGrid.DataGrid`1.ReloadInternal(CancellationToken cancellationToken)
    at Blazorise.DataGrid.DataGrid`1.Reload(CancellationToken cancellationToken) at Blazorise.DataGrid.DataGrid`1.OnAfterRenderAsync(Boolean firstRender)
    at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

  • Steps to reproduce the issue: Create a new solution using ABP Studio as ABP version 9.2.1, followed to create a new Entity using ABP Suite 9.2.0. Create an Entity Property named Image defining it as File. The application hangs.

This following picutures were provided as sample to reproduce the error, the entire application was created using ABP Studio and ABP Suite.

Create a new module named "Catalog" as the picture below:

Follow the importing procedures as ABP documentation:

Create a new Entity Property as File Property Type

Run the application using ABP Studio, but the Blazor Server runs as Terminal to track the error.

After creating the new field named Image as File type, the application hangs as the picture below:

The requested file "Products.razor.js" exists on the Blazor subfolder but the application can't find it.

It seems to have a fail on the ABP Suite template that is creating faulty application.

  • Template: app

  • Created ABP Studio Version: 1.0.1

  • Current ABP Studio Version: 1.0.1

  • Tiered: Yes

  • Multi-Tenancy: Yes

  • UI Framework: blazor-server

  • Theme: leptonx

  • Theme Style: system

  • Theme Menu Placement: side

  • Run Install Libs: Yes

  • Database Provider: ef

  • Database Management System: sqlserver

  • Separate Tenant Schema: Yes

  • Create Initial Migration: Yes

  • Run Db Migrator: Yes

  • Mobile Framework: maui

  • Public Website: Yes

  • Social Login: Yes

  • Include Tests: Yes

  • Kubernetes Configuration: No

  • Distributed Event Bus: rabbitmq

  • Use Local References: No

  • Optional Modules:

    • GDPR
    • FileManagement
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • Chat
    • OpenIddictAdmin
  • Selected Languages: English, English (United Kingdom), 简体中文, EspaƱol, Ų§Ł„Ų¹Ų±ŲØŁŠŲ©, ą¤¹ą¤æą¤Øą„ą¤¦ą„€, PortuguĆŖs (Brasil), FranƧais, Русский, Deutsch (Deuthschland), TürkƧe, Italiano, ČeÅ”tina, Magyar, RomĆ¢nă (RomĆ¢nia), Svenska, Suomi, Slovenčina, ƍslenska, 繁體中文

  • Default Language: English

  • Create Command: abp new TrialApp -t app --tiered --ui-framework blazor-server --mobile maui --database-provider ef --database-management-system sqlserver --theme leptonx --separate-tenant-schema --public-website --without-cms-kit --dont-run-bundling -chat -file-management

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

  • I have created a pretty new solution using ABP Studio 1.0.1, as settings described above, after that I created a module also on ABP Studio as the regular procedures, and then 3 new entities using ABP Suite 9.2.0 to simulate the error. I believe there is a BUG on ABP Suite because all the code was generated using ABP Tools like Studio or Suite.

Some screen shots to easly understand the simulation scenario.

Added Main folder for Main application

The initial version of the application is running well BUT the recently "Global Setting" module created at the begining with ABP Studio is not being presented in the Left Menu. Certainly this is a BUG.

Manually adding a New Module named Catalog

Both Module were imported and instaled into the Main Module, step by step each one as the regular procedure.

Initial Migrations applied

Unexpected Warning were presented against the ABP Studio Template automatic Generated Code (Certainly a Template BUG exists in ABP Studio New Solution feature.)

BUT the application was able to run without errors, and the New Module Catalog created manually using ABP Studio New Module feature is being presented. The Module GlobalSetting created throught the New Solution process is not being presented again (Studio New Solution feature BUG probably)

Product entity created using ABP Suite

Creating Master-Child entity according the ABP Documentation https://abp.io/docs/latest/suite/creating-master-detail-relationship

The PricingList entity (Master Entity)

PricingListItem (the child entity)

Up here, the application still building with success even the APB automated creating process (Studio and Suite) added inconsistencies detected by compiler generating Warnings (Potential BUG of the tools)

As you can see, the application still running well and you can see some entries created by the user (myself in the case)

The issue occurs when creating a Navigation Property in the Child entity, the ProductId field from the Product entity.

ABP Suite creates with success the NavProperty

Added the Migration

The DbMigrator breaks the execution UNEXPECTEDLY.

Also the error as Text presented below: PS C:\dev\TrialApp\src\TrialApp.DbMigrator> dotnet run C:\dev\TrialApp\modules\catalog\src\Catalog.Application.Contracts\Shared\LookupDto.cs(5,21): warning CS8618: Non-nullable property 'Id' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable. [21:09:16 INF] Started database migrations... [21:09:16 INF] Migrating schema for host database... [21:09:17 WRN] No store type was specified for the decimal property 'Price' on entity type 'PricingListItem'. This willcause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQLserver column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'. [21:09:18 ERR] Failed executing DbCommand (5ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] ALTER TABLE [CatalogPricingListItems] ADD CONSTRAINT [FK_CatalogPricingListItems_CatalogProducts_ProductId] FOREIGN KEY([ProductId]) REFERENCES [CatalogProducts] ([Id]); Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_CatalogPricingListItems_CatalogProducts_ProductId". The conflict occurred in database "TrialApp", table "dbo.CatalogProducts", column 'Id'. at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at Microsoft.Data.SqlClient.SqlCommand.InternalEndExecuteNonQuery(IAsyncResult asyncResult, Boolean isInternal, String endMethod) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryInternal(IAsyncResult asyncResult) at Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(IAsyncResult asyncResult) at Microsoft.Data.SqlClient.SqlCommand.<>c.b__210_1(IAsyncResult result) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction,Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func4 operation, Func4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<>c.<b__22_1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func4 operation, Func4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationTokencancellationToken) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationTokencancellationToken) at TrialApp.EntityFrameworkCore.EntityFrameworkCoreTrialAppDbSchemaMigrator.MigrateAsync() in C:\dev\TrialApp\src\TrialApp.EntityFrameworkCore\EntityFrameworkCore\EntityFrameworkCoreTrialAppDbSchemaMigrator.cs:line 33 at TrialApp.Data.TrialAppDbMigrationService.MigrateDatabaseSchemaAsync(Tenant tenant) in C:\dev\TrialApp\src\TrialApp.Domain\Data\TrialAppDbMigrationService.cs:line 100 at TrialApp.Data.TrialAppDbMigrationService.MigrateAsync() in C:\dev\TrialApp\src\TrialApp.Domain\Data\TrialAppDbMigrationService.cs:line 53 at TrialApp.DbMigrator.DbMigratorHostedService.StartAsync(CancellationToken cancellationToken) in C:\dev\TrialApp\src\TrialApp.DbMigrator\DbMigratorHostedService.cs:line 36 at Microsoft.Extensions.Hosting.Internal.Host.b__14_1(IHostedService service, CancellationToken token) at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func`3 operation) at Microsoft.Extensions.Hosting.Internal.Host.g__LogAndRethrow|14_3(<>c__DisplayClass14_0&) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at TrialApp.DbMigrator.Program.Main(String[] args) in C:\dev\TrialApp\src\TrialApp.DbMigrator\Program.cs:line 31 at TrialApp.DbMigrator.Program.(String[] args) ClientConnectionId:9330a71c-19b2-4f16-9920-16a4f8c0c6a5 Error Number:547,State:0,Class:16 PS C:\dev\TrialApp\src\TrialApp.DbMigrator>

I'm completely blocked to move forward with a new software without this master-child entity relationship having a Navigation Property 1-N on the Child Entity.

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

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • Template: app
  • Created ABP Studio Version: 0.9.25
  • Current ABP Studio Version: 0.9.26
  • Tiered: Yes
  • Multi-Tenancy: Yes
  • UI Framework: blazor-server
  • Theme: leptonx
  • Theme Style: system
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: sqlserver
  • Separate Tenant Schema: Yes
  • Create Initial Migration: Yes
  • Run Db Migrator: Yes
  • Mobile Framework: maui
  • Public Website: Yes
  • Include Tests: Yes
  • Kubernetes Configuration: No
  • Distributed Event Bus: rabbitmq
  • Use Local References: No
  • Optional Modules:
    • GDPR
    • FileManagement
    • TextTemplateManagement
    • LanguageManagement
    • AuditLogging
    • Chat
    • OpenIddictAdmin
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Issue Summary: After upgrading ABP Suite from version 9.1.0 to 9.1.2 using the "abp suite update" command as outlined in the official installation guide (ABP Suite Installation Guide - https://abp.io/docs/latest/suite/how-to-install), the application fails to launch and terminates unexpectedly. Steps Taken:

  • After the failure I fully uninstalled ABP Suite, ensuring removal of all related folders and files as recommended in the installation guide.
  • Cleared cache and performed a clean reinstallation.
  • Reinstalled ABP Suite 9.1.2, but the issue persists.

Error Details presented in the images below.

After found this root cause, I downgraded the ABP Suite to version 9.1.0 using ABP Studio and ABP Suite was lauched without error.

Additional Observations:

  • The error trace includes fixed paths referencing a D:\ drive, which does not exist on my machine. This suggests the paths might have been hardcoded in the release distribution.
  • The issue persists even after a clean installation of version 9.1.2.

Request for Assistance:

  • Guidance on resolving the invalid request URI/BaseAddress issue existing on the version 9.1.2
  • Confirmation on whether the hardcoded D:\ drive paths were mistakenly included in the distribution.

Please, after this solution refund 1 credit on my support tickets availabity.

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v0,9,22
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (Yes): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue: Just created a new solution and after that followed the steps to create new module under new folder, import the new module to main application, check install box. There are 2 DbContext in the solution (due to Multitenancy) but Studio didnĀ“t define the correct DbContext. I needed to create the Migration manually on Studio after that

Hi

I am making the deploy of a tiered blazor server app to iis server on a vm hosted in azure and i am having trouble with authentication. I run the authserver, httpapihost and finally the blazor app, it loads correctly but when I click in login the error 400 appears, and the logs allegate a fail with the authentication.

I am using a wildcard ssl certificate configured on iis for *.pipali.com.br

I'll show now my appsettings of the projects:

Authserver:

{ "App": { "SelfUrl": "https://alfa9authserver.pipali.com.br", "CorsOrigins": "https://alfa9blazor.pipali.com.br,https://alfa9httpapihost.pipali.com.br", "RedirectAllowedUrls": "https://alfa9blazor.pipali.com.br,https://alfa9httpapihost.pipali.com.br", "DisablePII": false }, "ConnectionStrings": { "Default": "Server=(LocalDb)\MSSQLLocalDB;Database=Alfa09-Quality;Trusted_Connection=True;TrustServerCertificate=true" }, "AuthServer": { "Authority": "https://alfa9authserver.pipali.com.br", "RequireHttpsMetadata": true, "CertificatePassPhrase": "1d9d9e9a-7480-4970-9495-f1e96de69336" }, "StringEncryption": { "DefaultPassPhrase": "z56ynL51bR7WsK28" }, "Redis": { "Configuration": "redis-11477.c282.east-us-mz.azure.redns.redis-cloud.com:11477,password=dxQrHqkjDYmNiLXL2CgvR2PviA2DijWc" } }

HttpApiHost:

{ "App": { "SelfUrl": "https://alfa9httpapihost.pipali.com.br", "MVCPublicUrl": "https://localhost:44345", "CorsOrigins": "https://*.Alfa09.com", "DisablePII": false, "HealthCheckUrl": "https://alfa9httpapihost.pipali.com.br/health-status" }, "ConnectionStrings": { "Default": "Server=(LocalDb)\MSSQLLocalDB;Database=Alfa09-Quality;Trusted_Connection=True;TrustServerCertificate=true" }, "Redis": { "Configuration": "redis-11477.c282.east-us-mz.azure.redns.redis-cloud.com:11477,password=dxQrHqkjDYmNiLXL2CgvR2PviA2DijWc" }, "RabbitMQ": { "Connections": { "Default": { "HostName": "localhost" } }, "EventBus": { "ClientName": "HttpApiHost", "ExchangeName": "Alfa09" } }, "AuthServer": { "Authority": "https://alfa9authserver.pipali.com.br", "RequireHttpsMetadata": true, "MetaAddress": "https://alfa9authserver.pipali.com.br", "SwaggerClientId": "Alfa09_Swagger" }, "StringEncryption": { "DefaultPassPhrase": "z56ynL51bR7WsK28" } }

Blazor:

{ "App": { "SelfUrl": "https://alfa9blazor.pipali.com.br", "DisablePII": false }, "RemoteServices": { "Default": { "BaseUrl": "https://alfa9httpapihost.pipali.com.br" }, "AbpAccountPublic": { "BaseUrl": "https://alfa9authserver.pipali.com.br" } }, "Redis": { "Configuration": "redis-11477.c282.east-us-mz.azure.redns.redis-cloud.com:11477,password=dxQrHqkjDYmNiLXL2CgvR2PviA2DijWc" }, "RabbitMQ": { "Connections": { "Default": { "HostName": "localhost", "Port": 5672, "Username": "guest", "Password": "guest", } }, "EventBus": { "ClientName": "BlazorServer", "ExchangeName": "Alfa09" } }, "AuthServer": { "Authority": "https://alfa9authserver.pipali.com.br", "RequireHttpsMetadata": true, "ClientId": "Alfa09_BlazorServer", "ClientSecret": "1q2w3e*" }, "StringEncryption": { "DefaultPassPhrase": "z56ynL51bR7WsK28" } }

  • ABP Framework version: v0.9.20
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:

Logs from blazor:

[15:59:07 INF] Initialized all ABP modules. [15:59:07 INF] Application started. Press Ctrl+C to shut down. [15:59:07 INF] Hosting environment: Quality [15:59:07 INF] Content root path: C:\inetpub\apps\alfa9\alfa9blazor [15:59:07 INF] Request starting HTTP/2 GET https://alfa9blazor.pipali.com.br/ - null null [15:59:09 INF] Executing endpoint '/ (/)' [15:59:09 INF] Bundling __bundles/Blazor.LeptonXTheme.Global.8825C25A46067E659DE2294C6AF67F1C.css (17 files) [15:59:09 INF] > Minified /libs/@fortawesome/fontawesome-free/css/all.css (106394 bytes -> 72264 bytes) [15:59:09 INF] > Minified /libs/@fortawesome/fontawesome-free/css/v4-shims.css (38514 bytes -> 30407 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/css/abp.css (1342 bytes -> 878 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.BlazoriseUI/volo.abp.blazoriseui.css (1274 bytes -> 939 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AuditLogging.Blazor/css/audit-logging.css (84 bytes -> 59 bytes) [15:59:09 INF] > Minified /_content/Volo.FileManagement.Blazor/filemanagement/css/filemanagement.css (2703 bytes -> 2144 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Web.LeptonXTheme/side-menu/libs/bootstrap-icons/font/bootstrap-icons.css (74827 bytes -> 57858 bytes) [15:59:09 INF] > Minified /blazor-global-styles.css (847 bytes -> 574 bytes) [15:59:09 INF] > Minified /Alfa09.Blazor.styles.css (867 bytes -> 607 bytes) [15:59:09 INF] Bundled __bundles/Blazor.LeptonXTheme.Global.8825C25A46067E659DE2294C6AF67F1C.css (619780 bytes) [15:59:09 INF] Bundling __bundles/Blazor.LeptonXTheme.Global.08DDBD1A43C345973039B06AD8A11F66.js (13 files) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/abp.js (8553 bytes -> 3582 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/authentication-state-listener.js (453 bytes -> 234 bytes) [15:59:09 INF] > Minified /_content/Volo.Chat.Blazor/libs/AvatarManager.js (2123 bytes -> 1086 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Server.LeptonXTheme/scripts/leptonx-blazor-compatibility.js (4501 bytes -> 2011 bytes) [15:59:09 INF] > Minified /_content/Volo.Abp.AspNetCore.Components.Web.LeptonXTheme/scripts/global.js (798 bytes -> 269 bytes) [15:59:09 INF] Bundled __bundles/Blazor.LeptonXTheme.Global.08DDBD1A43C345973039B06AD8A11F66.js (1044243 bytes) [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: SettingManagement.Emailing [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpAccount.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpIdentity.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AuditLogging.AuditLogs.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: FeatureManagement.ManageHostFeatures [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: Chat.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: SettingManagement.Emailing [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpAccount.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpIdentity.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AuditLogging.AuditLogs.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: FeatureManagement.ManageHostFeatures [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: Chat.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [15:59:10 WRN] Could not find the localization resource LeptonX on the remote server! [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: SettingManagement.Emailing [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpAccount.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AbpIdentity.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: AuditLogging.AuditLogs.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: FeatureManagement.ManageHostFeatures [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: Chat.SettingManagement [15:59:10 INF] Authorization failed. These requirements were not met: PermissionRequirement: CmsKit.SettingManagement [15:59:10 WRN] Could not find the localization resource LeptonX on the remote server! [15:59:10 WRN] Could not find the localization resource LeptonX on the remote server!

Logs from authserver:

[15:59:16 INF] Client validation failed because 'https://alfa9blazor.pipali.com.br/signin-oidc' was not a valid redirect_uri for Alfa09_BlazorServer. [15:59:16 INF] The authorization request was rejected because the redirect_uri was invalid: 'https://alfa9blazor.pipali.com.br/signin-oidc'. [15:59:16 INF] Request finished HTTP/2 GET https://alfa9authserver.pipali.com.br/connect/authorize?client_id=Alfa09_BlazorServer&redirect_uri=https%3A%2F%2Falfa9blazor.pipali.com.br%2Fsignin-oidc&response_type=code%20id_token&scope=openid%20profile%20roles%20email%20phone%20Alfa09&response_mode=form_post&nonce=638724671559100420.NTdhMTNkMmEtNDVjNC00N2U1LTlkOTAtYzVlNzg2MGJhMzkwZTU0NmJhY2YtNDJjYy00OGYzLTk2MzMtYzQ5NzViMzY2OThh&state=CfDJ8DClCOtfvdVOknIgtKcPoeh6I1YMlzFeYAAuNf_BerK63LuVAZEg47FYaCxSSibZqBup8GmcPNmTX3h9OT4YksFEOcCvyTE6cVeVVBS58DG0PjC8tf5XbIrKtiYz4cwqJdNPzt0HchAOaBom7m-IiJIQqmuSuehKSUWbE8ZExjFOqrqbGTYWm-tZ0x0PxtbDg8Nfb_ady-h0K5gAfQjT2pRt95mOCRC1yenO576LwFEnLRJeitVsxpD4E3V5j9lvnF9qVqgSeRVgr8H3Xzy3LLKS2S71sYOuX2X--0NLWE_W3VYUHqkFDuu3ByiJf-vaKA&x-client-SKU=ID_NET9_0&x-client-ver=8.1.0.0 - 302 null null 130.6717ms [15:59:16 INF] Request starting HTTP/2 GET https://alfa9authserver.pipali.com.br/Error?httpStatusCode=400 - null null [15:59:16 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [15:59:16 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController

  • Steps to reproduce the issue:
  • Publish the projects on windows server
  • Configure the iis and the websites
  • Configure the appsettings of each site
  • Try to login

Please help, if you need more info i'll send :)

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v0.9.15
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue: When creating a new solution using ABP Studio, the option to add CMS Kit is not available and there is a message restricting this feature is only available for Team Edition. But it was working fine in December before updating Abp Studio.

Hi,

I am deploying a tiered blazor server app in iis on a virtual machine hosted in azure using github actions and a pipeline to execute the webdeploy when a push was done, but i am having trouble with an specific project (maui project) that misses the android sdk to finish the build and followingly the webdeploy.

I'll share my workflow first:

name: Deploy Entire App using Web Deploy

on:
  push:
    branches:
      - main

jobs:
  build-and-deploy:
    runs-on: self-hosted

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Setup .NET
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: '9.0'
    
    - name: Install MAUI Workloads
      run: dotnet workload restore
    
    - name: Restore dependencies
      run: dotnet restore

    - name: Build project
      run: dotnet build --configuration Release 

    # Publicar e Deploy do AuthServer
    - name: Publish AuthServer
      run: dotnet publish ./src/Alfa5.AuthServer/Alfa5.AuthServer.csproj -c Release -o ./publish/AuthServer

    - name: Deploy using Web Deploy
      run: |
        "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" `
        -verb:sync `
        -source:contentPath="./publish/AuthServer" `
        -dest:iisApp="webdepauthserveralfa5",wmsvc=***,username=***,password=***,authType=Basic `
        -allowUntrusted

    # Publicar e Deploy do Blazor
    - name: Publish Blazor
      run: dotnet publish ./src/Alfa5.Blazor/Alfa5.Blazor.csproj -c Release -o ./publish/Blazor

    - name: Deploy using Web Deploy
      run: |
        "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" `
        -verb:sync `
        -source:contentPath="./publish/Blazor" `
        -dest:iisApp="webdepblazoralfa5",wmsvc=***,username=***,password=***,authType=Basic `
        -allowUntrusted

    # Publicar e Deploy do HttpApiHost
    - name: Publish Blazor
      run: dotnet publish ./src/Alfa5.HttpApi.Host/Alfa5.HttpApi.Host.csproj -c Release -o ./publish/HttpApi.Host

    - name: Deploy using Web Deploy
      run: |
        "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" `
        -verb:sync `
        -source:contentPath="./publish/HttpApi.Host" `
        -dest:iisApp="webdephttpapihostalfa5",wmsvc=***,username=***,password=***,authType=Basic `
        -allowUntrusted

Iam confused cause I did the webdeploy manually and dont needed to manage these android dependencies, cause I dont even need them, my plans don't involve mobile apps for now. But I wonder if that are solutions for this instead of simply removing that project, because in long terms I will need to solve this.

I already tried to install the sdk from android studio on the virtual machine. Already tried to add the chocolatey command to install the sdk on the workflows. None of them worked.

  • ABP Framework version: v0.9.15
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
Run dotnet build --configuration Release
  Determining projects to restore...
Error: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.24\tools\Xamarin.Android.Tooling.targets(62,5): error XA5300: The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk [C:\Users\opsadmin\actions-runner-2\_work\alfa5webdeploytest\alfa5webdeploytest\src\Alfa5.Maui\Alfa5.Maui.csproj::TargetFramework=net9.0-android]
Error: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\35.0.24\tools\Xamarin.Android.Tooling.targets(62,5): error XA5300: To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path. [C:\Users\opsadmin\actions-runner-2\_work\alfa5webdeploytest\alfa5webdeploytest\src\Alfa5.Maui\Alfa5.Maui.csproj::TargetFramework=net9.0-android]
  • Steps to reproduce the issue: Configure the webdeploy, IIS and the website correctly; Configure the workflow; Make a change, and do a push on the project;

I would like to know if I am doing this correctly, because i am trying to deploy it this way its been a while, there are some documentation of webdeploying tiered apps using github actions?

Thanks :)

Hi,

I am trying to make the deployment of a single project (Alfa5.Blazor) of a tiered app on iis server in a virtual machine hosted in azure, using webdeploy and github actions to update automatically the files when a push was done.

The workflow that I configured is this:

name: Deploy to IIS using Web Deploy

on:
  push:
    branches:
      - main

jobs:
  build-and-deploy:
    runs-on: self-hosted

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Setup .NET
      uses: actions/setup-dotnet@v3
      with:
        dotnet-version: '9.0'
    
    - name: Remove ABP NuGet source if exists
      run: |
        dotnet nuget remove source ABP
        if ($?) { Write-Host "Source ABP removed." } else { Write-Host "Source ABP not found." }

    - name: Add ABP NuGet source
      run: dotnet nuget add source https://nuget.abp.io/***/v3/index.json --name ABP --username *** --password ***

    - name: Restore dependencies
      run: dotnet restore

    - name: Build project
      run: dotnet build --configuration Release --no-restore

    - name: Publish application
      run: dotnet publish -c Release -o ./publish

    - name: Deploy using Web Deploy
      run: |
        "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" `
        -verb:sync `
        -source:contentPath="./publish" `
        -dest:iisApp="webdeployblazor",wmsvc=***,username="***",password=***,authType=Basic `
        -allowUntrusted

The app is tiered, so the project needs project dependencies that are referred in another directories, above the root of the project. But i am deploying just a single project, so to get around this problema I create a directory named "projectDependencies" and imported the necessary dependencies to inside it.

Inicially was working, but when I finished the importations of the project dependencies an another error was called, about circular dependencies. I already checked if really was circular dependencies in the project but I couldn't find none.

I will show the dependencies next:

Alfa5.Blazor: <ItemGroup> <ProjectReference Include="projectDependencies/Alfa5.Blazor.Client.csproj" /> <ProjectReference Include="projectDependencies/Alfa5.HttpApi.Client.csproj" /> </ItemGroup>

Alfa5.Blazor.Client: <ItemGroup> <ProjectReference Include="Alfa5.HttpApi.Client.csproj" /> </ItemGroup>

Alfa5.HttpApi.Client: <ItemGroup> <ProjectReference Include="Alfa5.Application.Contracts.csproj" /> </ItemGroup>

Alfa5.Application.Contracts: <ItemGroup> <ProjectReference Include="Alfa5.Domain.Shared.csproj" /> </ItemGroup>

Alfa5.Domain.Shared: None

This made me think if there are another thing that I missed, of if its a problem caused about some abp package that are confliting or if this what i am doing is even possible. I am accepting any solutions, cause is just a test, the next step that i would try was to deploy the whole app when a push was done, identifying what changed and making the webdeploy, but it will be way more complicated.

  • ABP Framework version: v0.9.15
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
Run dotnet build --configuration Release --no-restore
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\Alfa5.Blazor.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\Alfa5.Blazor.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Blazor.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Blazor.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.HttpApi.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.HttpApi.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Program Files\dotnet\sdk\9.0.101\Microsoft.Common.CurrentVersion.targets(2132,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences". [C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj]
C:\Program Files\dotnet\sdk\9.0.101\Microsoft.Common.CurrentVersion.targets(2132,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences". [C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj]

Build FAILED.

C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\Alfa5.Blazor.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\Alfa5.Blazor.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Blazor.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Blazor.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.HttpApi.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.HttpApi.Client.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp (= 0.17.1) but version AngleSharp 1.1.2 was resolved.
C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj : warning NU1608: Detected package version outside of dependency constraint: HtmlSanitizer 8.1.870 requires AngleSharp.Css (= 0.17.0) but version AngleSharp.Css 1.0.0-beta.144 was resolved.
C:\Program Files\dotnet\sdk\9.0.101\Microsoft.Common.CurrentVersion.targets(2132,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences". [C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Application.Contracts.csproj]
C:\Program Files\dotnet\sdk\9.0.101\Microsoft.Common.CurrentVersion.targets(2132,5): error MSB4006: There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences". [C:\Users\opsadmin\actions-runner\_work\webdeploytest\webdeploytest\projectDependencies\Alfa5.Domain.Shared.csproj]
    10 Warning(s)
    2 Error(s)

Time Elapsed 00:00:02.45 Error: Process completed with exit code 1.

  • Steps to reproduce the issue: Configure the webdeploy, IIS and the website correctly; Configure the workflow; Make a change, and do a push on the project;

Thanks :)

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.3
  • ABP Studio: 0.9.6
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): NO
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a new Blazor Server using ABP Studio. The application configuration is listed below, copied from ABP Studio Configuration. This a new application build.

- **Template**: app

- **Created ABP Studio Version**: 0.9.6 - **Tiered**: No - **UI Framework**: blazor-server - **Theme**: leptonx - **Theme Style**: system - **Database Provider**: ef - **Database Management System**: sqlserver - **Separate Tenant Schema**: Yes - **Mobile Framework**: maui - **Public Website**: Yes - **Optional Modules**: * GDPR * FileManagement * TextTemplateManagement * LanguageManagement * AuditLogging * SaaS * Chat * OpenIddictAdmin

The new application was copied to another machine where I“m doing some tests about the deployment. The first thing is to transfer the application, run the migration etc. BUT the new PC isn“t logged in to my Commercial Account, because the future server will not also logged in to the commercial account.

When running the application (example the Web-Public, or Blazor) it runs very slowly, the time to load the page on the browser is too high. I“ve tried to diagnose the situation running the application through a Windows command prompt, running "DOTNET RUN" to see what happens.

I found many calls to license server getting error, maybe it is running in endless looping affecting the performance of the new application. I understood that it is not needed to LogIn to Commercial Account to run the application. The below picture shows the errors:

What should I do to avoid these endless calls to License Server? Also to improve the response time of the application?

Showing 1 to 10 of 18 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.1.0-preview. Updated on October 30, 2025, 06:33