- ABP Framework version: v8.0.4
- 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:
- LeptonX: 3.0.3
Hi. I have couple problems with ABP. Firstly I get error 404 when try access https://....../Account/Login page but i access when i refresh with F5 or enter link without change link. I have a short video tihs problem. Secondly I get another error when try any exist link or page but mostly i get error which contains Reload message. This error doesn't always but it occurs mostly. And i have an image for this error. And lastly error about to CSS of pages. CSSs doesn't correctly load in sometimes. I shared resources which relation with errors in below:
I am waiting your supports and helps. Have a nice work.
10 Answer(s)
-
0
hi
Can you share the Steps to reproduce the issue in a new template project?
Thanks
-
0
I found source of error for about Account/Login Page 404. This reason is I navigate to Account/Login page in my ComponentBase in SetParameterAsync method. I wonder how can i navigate Login page in this place so MyComponentBase? I share an image which relation my 404 error in below. I am waiting your supports and helps. Thanks.
-
0
hi
You can try
NavigationManager.NavigateTo("/Account/Login", true);
-
0
hi I started get error after this code applied when try use repository which provides ABP so GetAsync, GetListAsync, FindAsync etc methods. I have an image for this error. This error doesn't occur when write and call my method in AppService and Repository. I am sharing image about error details. I am waiting your support and help.
-
0
hi
try use repository which provides ABP so GetAsync, GetListAsync, FindAsync etc methods.
Please share the code of your blazor component.
Thanks.
-
0
hi Sure. But i want to say i used this methods before in another projects which created as N-Tier and it works excellent. And i tried new method for this repository methods so i moved UOW block then this method run. I don't understand point is that i used these methods without UOW block and it works but it doesn't work in this project. I shared a code block which throw error.
This code throw an error(Object Disposed Error):
var user = (await _identityUserService.GetAsync(item.CreatedUser));
And This Code Work Fine:
using (var uow = _uow.Begin(new AbpUnitOfWorkOptions(), requiresNew: true)) { var user = (await _identityUserService.GetAsync(item.CreatedUser)); await uow.CompleteAsync(); }
Thanks for your support and interest.
-
0
hi
Please share the full code of your blazor component and
_identityUserService
liming.ma@volosoft.com
Thanks.
-
0
-
0
hi
I tried again and I get same error Object Disposed when attempt to use FirstOrDefaultAsync method without UnitOfManager.Begin method but I use UOW.Begin method then no problem code work fine. I added an image relation to error.
- If you are not injecting the service over an interface (like IMyService), then the methods of the service must be virtual (otherwise, dynamic proxy / interception system can not work).
Can you share a new template project to reproduce this error? liming.ma@volosoft.com
Thanks.
-
0
hi
Your app service should inherit from
ApplicationService
public class ConditionAppService : ApplicationService, IConditionAppService