Base solution for your next web application

Activities of "-bitman"

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

I would like to ask if there is a feature that will allow me to get statistics of the number of page visits from users of my application?

Thank you!

Hello AspNetZero Team,

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

We have deployed our app service to azure with multiple server instances running and configured it to connect to Azure SignalR. Before we have done this change, the push notification to the app works well and I can see the toast messages and the bell icon being updated with notifications in realtime. But after we've switched over to Azure SignalR, all the realtime notifications went away.

Any ideas how this might have happened please?

Thank you!

  • What is your product version? 8.2.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

I would like to get advice regarding the error I am getting in the application that is deployed in azure having multiple server instances.

info: Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[1]
      Failed to validate the token.
Microsoft.IdentityModel.Tokens.SecurityTokenExpiredException: IDX10223: Lifetime validation failed. The token is expired. ValidTo: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]', Current time: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
   at Microsoft.IdentityModel.Tokens.Validators.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, SecurityToken securityToken, TokenValidationParameters validationParameters)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateLifetime(Nullable`1 notBefore, Nullable`1 expires, JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateTokenPayload(JwtSecurityToken jwtToken, TokenValidationParameters validationParameters)
   at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken)
   at SprintTek.Web.Authentication.JwtBearer.SprintTekJwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters, SecurityToken& validatedToken) in C:\Users\SSPH\source\agent\_work\5\s\aspnet-core\src\SprintTek.Web.Core\Authentication\JwtBearer\SprintTekJwtSecurityTokenHandler.cs:line 40
   at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync()
info: Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler[7]
      Bearer was not authenticated. Failure message: IDX10223: Lifetime validation failed. The token is expired. ValidTo: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]', Current time: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint 'SprintTek.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (SprintTek.Web.Core)'

I checked the AccessTokenExpiration settings and it is for 1 day.

Please advise. Thank you!

Hello ANZ Team,

We are facing a problem in our azure production environment. We get that 404 error code with signalR and we have multiple server instances running. We are getting thousands of 404 errors from it and it is causing the servers to bug down during peak operations and we cannot afford a single minute of downtime. I can also confirm that our settings from azure websockets is ON. We are on Angular + .NET Core v8.2

Please help. This is critical. Thank you!

Question

Hello ANZ Team,

I would like to ask if there is a way to check for the history of connections made to the database? I wanted to see how many users are concurrently hitting the server at a given point in time. Please advise.

Thank you!

Question

Hello ANZ Team,

I am in the process of writing a native mobile app and I would like to get some advice on how to detect the tenant id based on just the username and password entered by the user? I understand that when authenticating a user, I need to pass the tenant id along with it but since my app will be used by different tenants I don't want to expose them to each other. Do you have a recommended solution to this situation?

Looking forward to your response.

Thank you very much!

Question

Hello ANZ Team,

I would like to seek some guidance on what is the best practice when using enumerations as the data type of a property from the Power Tools? Where and how should I implement this in the code?

Thank you in advance!

Hello ANZ Team,

I upgraded to v8.9 of Angular+Core combo of my project and installed the Docker requirements as well as the minimum Windows OS version but after doing all of those I get this error when rebuilding my entire .NET Core solution. Please advise. Thank you.

Here is the entire error log...

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB4018	The "CleanWorkspace" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
File name: 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
   at Microsoft.Docker.BuildTasks.DockerBuildTask.OutputAndLogContainerToolsException(ContainerToolsException ex)
   at Microsoft.Docker.BuildTasks.DockerBuildTask.<ExecuteAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Docker.BuildTasks.DockerBuildTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
	docker-compose-mvc	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets	450	

Question

Hello ANZ Team,

Would you mind elaborating the extent of the LDAP implementation in your solution? Does it drill down to the roles from the active directory server and bubbles up to the authorization management built-in ANZ?

Please advise. Thank you.

Hello ANZ Team,

I have a customer-contact entity that contains the 1-to-many relationship between my customer and contact entities. This entity only has the PK for the customer and contacts entities. I wanted to add a navigation property to my customer entity against this customer-contact entity on the contact id. The use case is for my customer to have a primary contact from its list of contacts. When I tried this using the Power Tools, under the navigation property, it stops me from generating the code and prompts for assigning a display field. I don't want to add another property just for this since I only need the PKs of the customer and contact entities in my customer-contact entity.

Please help on how to go about this matter.

Thank you.

Showing 1 to 10 of 33 entries