Hi EngincanV,
Thanks so much for your prompt response—the workaround worked perfectly. The ABP team truly are experts!
To streamline development, I’m keeping customizations to a minimum and relying on built-in features whenever possible.
Could you please confirm the version in which this fix will be included, and proceed with refunding the credit for this support ticket?
Appreciate your help, and hope you have a great day!
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.
[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)
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.
Hi @m.aliozkaya, The workaround you suggested worked perfectly—thank you! I’ve also gone ahead and addressed similar issues in related child entities. Please keep me posted on when the definitive fix will be available. Once the bug is officially confirmed, I’d appreciate it if the credit consumed by this ticket could be reverted. Thanks a million for your continued support!
Nice! I will update the code on my end and try again, hopping this will fix it.
I'll let you know after my testing here.
Thank you for your assistance.
Hi @m.aliozkaya,
Thank you for your assistance.
Our solution is working correctly so far with three entities as you could confirm in the previos message:
Product (master entity)
PricingList (master entity)
PricingListItem (child entity linked to PricingList)
At this stage, the PricingListItem entity contains only two properties: Currency and Price. Everything runs smoothly up to this point.
I’ve now added a new commit to the branch, where I introduce a Navigation Property in the PricingListItem entity pointing to ProductId from the Product entity, using ABP Suite 9.2.0. You can check the latest commit on the branch for details.
Here’s what I did and what I observed:
Added the Navigation Property to PricingListItem (ProductId).
ABP Suite generated the updated code successfully.
Applied the migration successfully.
Ran DbMigrator without errors.
Reloaded the solution successfully.
The solution started launching the services.
However, after this change, the HttpApi.Host service hangs indefinitely when running in ABP Studio. As a consequence, the other dependent services also hang due to the unavailability of HttpApi.Host.
To investigate further, I stopped the service in ABP Studio and ran it manually from the terminal to check the logs (see attached screenshot for details).
Could you please help me identify why introducing the Navigation Property causes the service to hang?
Thank you very much for your support!
Hi. Thank you! Just to remind, the solution was generated by ABP Tools, without any manual coding. I belive there is something missing on ABP Suite Templates.
Thanks for the tip. There might have been some inconsistencies in the previous database indexes, so I deleted the test DB to allow DBMigrator to generate a fresh one in the next steps.
Restarting the simulation, I created a brand-new solution and followed the same steps up to the creation of the Child entity—without adding the Product navigation property. This was to test the newly generated database and application.
Everything worked fine: the application ran, and the CRUD operations generated by ABP Suite functioned correctly in the UI.
Next, I added a navigation property to the ProductListItem entity (referencing the Product entity as a foreign key) using ABP Suite, followed by generating a migration and running DBMigrator to update the database.
Up to this point, all steps completed successfully—migrations applied and DB updated.
However, when running the solution via HTTP.API.Host in ABP Studio, it began to hang (with the red triangle alert).
So I switched to Terminal for more detailed logs, where I noticed some inconsistencies in the object mappers—possibly caused by a faulty template generated by ABP Suite 9.2.0.
Here is what I think is useful, maybe, for you to see the generated code when I applied the NavProperty into the Child entity.
Here is the list of files changed after the creation of NavProperties.
If you consider useful I can share with you the github containg a commit at the point where the NavProperty was added into the Child entity. It is a test solution created only for simulation, no sensitive information exists.