Ends in:
1 DAY
11 HRS
33 MIN
22 SEC
Ends in:
1 D
11 H
33 M
22 S

Activities of "okains"

  • ABP Framework version: v8.3.1
  • 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:

I upgraded to 8.3.1 from v8.2.x using ABP Suite. Upon deploying this code I am getting the following exception thrown on the AuthServer, causing a 400 Error page to show to the user:

4-10-17 07:12:26.032 +00:00 [ERR] Connection ID "16429131441452883878", Request ID "40001fa7-0000-e400-b63f-84710c7967bb": An unhandled exception was thrown by the application. Volo.Abp.AbpException: Could not find file '/libs/datatables.net/js/jquery.dataTables.js' at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file)

Not sure why it is looking for the jquery.dataTables.js file as that file no longer exists in v2.x of DataTables, it is just dataTables.js now. In any case, I created that file in my libs folder, just copying the dataTables.js file:

And this is deployed:

Yet still getting the exception. My version of DataTables is 2.1.7 :

Not sure if that makes a difference here since this seems to be a bundling issue of some kind.

Any ideas on how to resolve this?

Thanks,

Karim

  • ABP Framework version: v8.2.3
  • 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:

Hi,

This just started to happen, when I log in to our production (test) environment everything is OK for a few seconds, then I seem to be losing authentication, and getting an 'Unauthorized' exception when calling a service method on the homepage. I have a video of this here:

https://drive.google.com/file/d/1xJpaKd_RJFRgb90Ol0IxINk0oW9c6n6Y/view?usp=drive_link

I have detailed errors on so I can see the exception in the browser console:

Do you know why / how this is happening and how to fix?

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2.3
  • 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:

Hi,

I am getting a 404 returned on every login in production, due to there being a missing moment.min.js.map file.

This is causing a noticeable 404 Error Page flashing on screen for 1 second before the login page loads.

Here are the sections of the logs that show this :

2024-09-07 03:43:25.154 +00:00 [INF] > Minified /libs/timeago/jquery.timeago.js (7636 bytes -> 4107 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] - /libs/bootstrap-datepicker/bootstrap-datepicker.min.js (33878 bytes) 2024-09-07 03:43:25.157 +00:00 [DBG] > Already minified. 2024-09-07 03:43:25.161 +00:00 [DBG] - /libs/moment/moment.min.js (58891 bytes) 2024-09-07 03:43:25.161 +00:00 [DBG] > Already minified.

2024-09-07 03:46:01.711 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - null null 2024-09-07 03:46:01.712 +00:00 [DBG] The request path /__bundles/moment.min.js.map; does not match a supported file type 2024-09-07 03:46:01.712 +00:00 [DBG] No candidates found for the request path '/__bundles/moment.min.js.map;' 2024-09-07 03:46:01.712 +00:00 [DBG] Request did not match any endpoints 2024-09-07 03:46:01.715 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map; - 302 null null 3.4218ms 2024-09-07 03:46:01.715 +00:00 [INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://esv2-auth-test.azurewebsites.net/__bundles/moment.min.js.map;, Response status code: 302 2024-09-07 03:46:01.834 +00:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript 2024-09-07 03:46:01.835 +00:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 2397.8982ms 2024-09-07 03:46:01.835 +00:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2024-09-07 03:46:01.856 +00:00 [INF] Request finished HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Abp/ApplicationLocalizationScript?cultureName=en - 200 91128 application/javascript 2427.1567ms 2024-09-07 03:46:02.131 +00:00 [INF] Request starting HTTP/1.1 GET https://esv2-auth-test.azurewebsites.net/Error?httpStatusCode=404 - null null

How can I fix this problem?

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2.3
  • 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:

Hi,

I have been deploying to Azure Deployment Slots, and I am getting transient db errors in the logs on the Auth project that are causing me to often get 400 Errors returned. The log errors are initially in this format:

2024-09-06 15:20:30.990 +00:00 [ERR] An error occurred using the connection to database 'ESv2-testing' on server 'tcp:hathor-hk.database.windows.net,1433'.

Resulting in this:

Following the suggestion of ChatGPT, I added EnableRetryOnFailure:

Configure<AbpDbContextOptions>(options => { /* The main point to change your DBMS. * See also ESv2DbContextFactory for EF Core tooling. */ options.UseSqlServer(sqlOptions => sqlOptions.EnableRetryOnFailure(5, TimeSpan.FromSeconds(10), null)); });

But it seems this may not be supported in ABP.

I am now getting the following in my logs :

2024-09-06 13:08:13.988 +00:00 [ERR] An exception occurred while iterating over the results of a query for context type 'Volo.Abp.TextTemplateManagement.EntityFrameworkCore.TextTemplateManagementDbContext'. System.InvalidOperationException: The configured execution strategy 'SqlServerRetryingExecutionStrategy' does not support user-initiated transactions. Use the execution strategy returned by 'DbContext.Database.CreateExecutionStrategy()' to execute all the operations in the transaction as a retriable unit. at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.OnFirstExecution()

Is there another approach to handling these errors?

This particular exception that is logged: [ERR] An exception occurred while iterating over the results of a query for context type 'Volo.Abp.TextTemplateManagement.EntityFrameworkCore.TextTemplateManagementDbContext'.

Is this maybe the root cause here? This doesn't happen all of the time though, any idea on what is going on here?

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2.0
  • 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:

My logged in user menu doesn't open on click, other menus in the header are working fine. Any idea on how to get this fixed?

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2
  • 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:

I am working through a CI / CD implementation using Azure Deployment slots. I have a tiered application that I am trying to get deployed correctly. This is just a basic, no changes, out of the box 3 tier application generated by ABPSuite that I use as a base dev environment for testing.

First problem is that I can not see the full menu for the admin user in the tiered app on neither dev nor production. However in dev everything works as expected, I can create users, and I am authenticated as admin ( it seems ).

For reference, I created a single tier app, and I see the admin user menu as I would expect:

So I would expect to see this menu in my tiered app. They were created exactly the same time, same 8.2 version number, no code updates, just out of the box ABP. But I do not get the user / admin menu in my fresh and clean 3 tier app.

The real issue here is when I deploy a 3 tier app using Azure Deployment Slots to a staging environment on Azure. I can log in OK, and I get the same no options Admin menu as I got in my local dev environment:

However I can’t see any admin menu, and I get an Unauthorized exception after trying to do anything. Even though I seem to be logged in as the admin user.

After Refresh:

This to me seems like a configuration issue, but I can not seem to see any difference in config between environments.

Any insight would be much appreciated.

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2
  • UI Type: Blazor Web App
  • 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:

Hi,

Before I upgraded my 7.x project to 8.2 I could generate long lived access tokens ( 1 year ) using the following code in the AuthServerModule:

PreConfigure<OpenIddictServerBuilder>(builder => { builder.SetAccessTokenLifetime(TimeSpan.FromDays(365)); builder.SetIdentityTokenLifetime(TimeSpan.FromDays(365));

});

This code still works, and I get a token in the db that seems to have everything set correctly:

However after about a day the token stops working. Nothing has changed in the db, and the token is of course the same, but for some reason I get a 401 when using the token, whereas for the first day ( could be more or less but seems like about a day ) it works fine:

I noticed that ABP 8.x has upgraded to OpenIddict 5, and I went through all of the migration steps for that, so I looked for anything that changed and I see that there is now the concept of per client token expiration settings. However the global settings supposedly override that ( if client settings are not set explicitly ) and I am not sure how to configure ABP to use the client settings.

Can you provide any insight into this, and suggest some things to try so that I can get this long lived token functionality back?

Thanks,

Karim Ainsworth

  • ABP Framework version: v8.2.0
  • UI Type: Blazor Web App
  • 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:

This happens every time I load / refresh a page. I can login fine, currently logged in here as admin:

After a few seconds I get this:

And then the page resets. My MainHeaderBranding override gets reset, 3rd party Syncfusion control loses databinding etc.

Any idea how to prevent this from happening?

Thanks,

Karim

  • ABP Framework version: v8.2
  • UI Type: Blazor Web App
  • 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:

Hi,

I am attempting to integrate Entra External ID. This is for an existing Blazor Web App (8.2) tiered project, however I have created a brand new non-tiered project in order to work through the Auth integration. Then I will apply to the existing tiered project.

I have 2 issues, the first and most strange being that as soon as I add the configuration section using Microsoft.Identity.WebApp that allows me to initiate the Entra flow I can not log in using the built in admin credentials.

This is the clean solution, no config for Entra, Admin login working fine:

After adding the config to allow for Entra Login:

I now get the OpenIdConnect button:

However, if I try to log in with the basic admin credentials:

It redirects back , pauses for 2-3 seconds with an ‘ Authorizing’ message, then I get this UI which is not what I would expect after logging in as Admin. No Administration menu, no access to the ‘RockStars’ entity I generated as a test case:

When I click the Logout Button noted above I get back to the Login UI noted above, when I click the OpenIdConnect button I get an invalid OAuth State Error. This is what I get every time I redirect back to <abp>/signin-oidc. Would appreciate it if you could check my config screenshotted above and let me know if there is something missing / wrong that would cause this error:

Main concern is that as soon as I add the external Entra login support I can't seem to log in as normal with the built in admin account. I need to support Entra External ID in all of my future projects so this is critical for my business going forward.

This is a brand new solution that I generated yesterday to debug these issues. I can share this with you on GitHub in order to troubleshoot.

Please let me know if you need any more info.

Thanks,

Karim

  • ABP Framework version: v8.2.0
  • 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:

Hi,

I just upgraded an older 8.0 project to the new 8.2 (rc5 at the time). The old project didn't have much UI, but I did have 50+ entities that I had generated code and UI for using ABP Suite. This code I wanted to keep obviously. So, I created a brand new 8.2 project with the same project name ( ESv2 ), in a new folder. Then moved all the old generated code into Domain / Shared / Application Contracts etc. Made other changes in order to get the project to work, and everything is working fined now.

However I would like access to all of my old entities somehow in ABPSuite, so that I can modify / regenerate if need be. Where would this list be stored / located? How would I move this metatdata from the old ESv2 project in ABP Suite to the new ESv2 project?

Here is a screenshot of the new empty ESv2 project :

and the old one, with Entities:

Many Thanks,

Karim

Showing 1 to 10 of 25 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35