Base solution for your next web application

Activities of "Mitch"

We're using ASP.Net ZERO Core MVC 11.3.

We have been using IsInRoleAsync without issue, until we needed to return a Role that isn't one of the defaults ie Admin or User.

We were looking for the role "Manager", but we noticed it wasn't working, so we checked and found it is returning the value "97d5491d35b440edbb5fc33169f91d1b" instead of "Manager".

Somehow, new roles that are added to the database have "GUID-like" values in the Name and NormalizedName fields such as 97d5491d35b440edbb5fc33169f91d1b and 97D5491D35B440EDBB5FC33169F91D1B.

However, Admin and User have Admin and ADMIN and User and USER as expected in the Name and NormalizedName fields.

Any ideas why this is happening to newly created Roles? Is it by design? If not, was this fixed in a later version?

I'm using ASP.Net Zero 11.3 Core.

I want to remove the Chat and Dark/Light Mode functionality/icons at the top of the screen.

What is the recommended way of doing this?

Question

ASP.Net Zero 11.3 JQuery.

I've read all the previous advice on implementing SendGrid SMTP for emails.

I've setup my API ID/keys and used them with the Username/Password, ensured the IP addresses are Whitelisted, tried setting up with and without SSL and tried a variety of ports but I am constantly getting "An error was encountered while sending an email. The SMTP server has unexpectedly disconnected." when I Send a Test Email.

Has anyone else seen this error message when using SendGrid SMTP with ASP.Net Zero?

  • What is your product version 11.3
  • What is your product type MVC
  • What is product framework type .Net Core

We've had some clients complain about the scrollbars being too narrow on dropdowns and tables.

Having looked at the Metronic website it seems that's where the thin scroll bars originate from.

However, there doesn't appear to be any documentation regarding the scrollbar width and how to adjust it.

Has anyone managed to get their scrollbars to revert to normal width when using ASP Net Zero and Metronic?

Here's what it looks like on one of our dropdowns.

Version 11.3- MVC- Net.Core Multi-tenant

I've successfully purchased a wildcard domain and have configured it with Azure.

I have followed the ASPNetZero documentation and made the changes to the appsettings.json so allow for the subdomain to select the tenant.

"ServerRootAddress": "{TENANCY_NAME}.mydomain.com/",
"ClientRootAddress": "{TENANCY_NAME}.mydomain.com/",
"CorsOrigins": "{TENANCY_NAME}.mydomain.com/"

(Obviously I'm not using mydomain.com in my app!)

However, when I Publish ASPNETZERO to Azure and use my subdomain, it is just ignored and the Tenant selector is always shown.

I've now spent many days trying different approaches but I've run out of ideas to get this working.

So, has anyone managed to use sub domains on an Azure Web App to successfully select the tenant as I'm beginning to wonder if Azure is causing an issue, and if there's a workaround?

Is there a simple way of retrieving the current Tenant name either directly into a View or Controller?

(MVC DotNet Core)

Please delete (created in error)

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

We've just run a Security check on ANZ 10.5 and it has failed due to the version of jQuery being 3.4.1. The exact description was "jQuery v3.4.1 contains multiple known cross-site scripting vulnerabilities. All versions prior to 3.5.0 are vulnerable."

Without wishing to make too many changes to ANZ, what is the correct way to update the version of jQuery that ANZ uses?

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

When logging in everything seems to be working for 2FA. I can specify Email, Phone or Google Authenticator and all works as expected.

However, after checking the "Remember me" box, I was expecting not to be asked again for 2FA details as I was logging in on the same browser and PC.

I've now tried this 5 times and I always get asked for 2FA details each time regardless of whether the "Remember me" box is checked or not.

Is there an issue or have I misunderstood something?

  • What is your product version? 10.1 RC
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? Net 5

I've just started to test version 10.1 RC. I'm following the getting started guide.

I set the Default Project in the Package Manager Console to EntityFrameworkCore.

I've got as far as running update-database but it fails with "More than one DbContext was found".

Showing 1 to 10 of 41 entries