Base solution for your next web application

Activities of "Mitch"

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?

HI @ismcagdas

I've been trying it with and without the https:// prefix and I've added it to appsettings and appsettings.production.json.

Nothing seems to work which is why I was asking if anyone had managed to make it work with Azure Web Apps as I was beginning to think there might be a specific issue with Web apps.

Any suggestions of how what to try next would be appreciated.

BINGO! Thank you so much! I'd correctly set up all the values except for WebSiteRootAddress

"ServerRootAddress": "https://{TENANCY_NAME}.xxx.cloud/", "ClientRootAddress": "https://{TENANCY_NAME}.xxx.cloud/", "CorsOrigins": "https://{TENANCY_NAME}.xxx.cloud/", "WebSiteRootAddress": THIS WAS INCORRECT!

Now it's working, is there a simple way of showing the Clients logo on the login screen by using the Tenancy name? i.e. Is it possible to use the TENANCY_NAME to find a matching image that uses the Tenancy name such as {TENANCY_NAME}.jpg

That's fantastic. Many thanks for all your help.

  • 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.

Thanks for responding.

We're using Telerik Kendo controls which normally have standard width scrollbars until they are used in ASP Net Zero when they become very narrow as shown below.

I've tried to find the source of the styling that's affecting the controls scrollbars and when I looked on the Metronic website, all of their scrollbars are thin too.

So, I tried to find where the scrollbar styling was to be found in the Metronic files but couldn't find anything which is why I asked the question.

I hope this helps.

Thanks, removing --webkit-scrollbar from style.bundle.css did the trick!

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?

Answer

I've had a response from SendGrid which has solved my issue.

For the Username, you must type "apikey" and not use your API key ID value like I thought when following instructions. It wasn't clear that you don't actually use your API key where it says "apikey"!

Very confusing.

Anyway, all sorted now.

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?

Showing 91 to 100 of 103 entries