Base solution for your next web application

Activities of "elecosoftseservice"

I'm using ASP.NET Zero 11.0.1 with an Angular front-end.

I've seen this documentation on adding Azure Key Vault to the configuration: https://docs.aspnetzero.com/en/aspnet-core-angular/v11.0.0/Features-Angular-Azure-Key-Vault

...but I can't find any documentation on how to get Secrets from the vault in my application code. Can you provide an example please?

ASP.NET Zero Version: 11.0.1 .NET 6 / Angular UI

I'm getting continual SignalR errors in the browser console - this happens both deployed to an Azure environment (with WebSockets enabled) and locally on my machine:

In the screenshot, you can see successful connections for both AppCommonHob/signalr and my projects-messaging hub.

When I use my projects-messaging hub on a long running background process, it communicates to the client for about 2 minutes, after which the client no longer gets any updates. No exceptions are thrown in the back-end though.

Can you offer any help with this please?

  • What is your product version? v11.0.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core 6

I've been trying to implement E-mail based tenant login, and have used the code in these articles below:

https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Core-Angular-Sign-In-Without-Specifying-Tenant https://support.aspnetzero.com/QA/Questions/10855/remove-tenant-from-the-login-screen---You-are-not-logged-in-as-a-host-user

When trying this out, I get past the code which Logs in the user, but an exception is raised further down:

TokenAuthController.cs CreateJwtClaims():

await _userManager.AddTokenValidityKeyAsync( user, tokenValidityKey, expirationDate );

System.InvalidOperationException: The navigation 'User.Tokens' cannot be loaded because the entity is not being tracked. Navigations can only be loaded for tracked entities. at Microsoft.EntityFrameworkCore.Internal.EntityFinder1.<LoadAsync>d__11.MoveNext() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.<EnsureCollectionLoadedAsync>d__451.MoveNext() at Abp.Domain.Repositories.RepositoryExtensions.<EnsureCollectionLoadedAsync>d__03.MoveNext() at Abp.Authorization.Users.AbpUserStore2.<>c__DisplayClass170_0.<<AddTokenValidityKeyAsync>b__0>d.MoveNext() at Abp.Domain.Uow.UnitOfWorkManagerExtensions.<WithUnitOfWorkAsync>d__1.MoveNext() at Abp.Authorization.Users.AbpUserStore2.<AddTokenValidityKeyAsync>d__170.MoveNext() at Abp.Authorization.Users.AbpUserManager`2.

Any ideas on what could be causing this?

  • What is your product version? v11.0.1
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .NET Core

I want to write a custom Repository - which Project should I create this in and where do I register it for Dependency Injection?

Showing 1 to 4 of 4 entries