Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "aiqbal"

I see in the documentation, https://docs.aspnetzero.com/aspnet-core-angular/latest/Features-Angular-Host-Settings, that there is a built in feature to prevent users from being able to re-use passwords. However, I do not see this setting appear on our UI. We have multi tenancy disabled. Is that why? If so how can we enable this feature for single tenancy?

Answer

Hi,

I took a look at the documentation which shows how to create the images, but what I am trying to do is run the project using VisualStudio inside of Docker. When you do this it uses the Dockerfile in the project which has a base using aspnet:8.0.

Question

Hi,

I'm trying to run the "ASP.NET CORE & Angular" version of the project within Docker but it's failing because the project is running in .Net 8 but the DockerFile references .Net 7.

I was able to get further by manually updating the DockerFile to reference .Net 8 instead which will start the project, but then I had trouble accessing it. I believe the issue is because the project is starting on port 5000 now instead of 80/443 like before. The only way I could get access to it was if I used the Kestrel override and specified the ports manually. That works but doesn't seem like the intended way. Do you know how this should be configured going forward in .net 8?

Marco

You can't install the ASP.Net Zero Power Tools in VS 2022. Are there plans to update it so it works with VS 2022? Is there a work around I could use in the meantime to get them to install?

I have been experimenting with this over the last day and I was able to get it to work on my local environment provided that the service and the website are running under the same domain but in different ports. So that is great news. We can make it work now.

But I'm curious if this is the only way in which it will work because it would mean that we would need to buy a separate domain for each of our environments (eg: dev-oursite.com, qa-oursite.com, oursite.com) where in the past we had only purchased one domain and then used the subdomain (eg: qa.oursite.com) to control which environment we are connecting too.

This would also mean that we would need to open an additional port in the server for the website to be able to talk to the service. This isn't something we have had to do before so its caught us by surprise.

That says that we need to bind the subdomains to the same app but we have two apps (websites running on IIS). One for the angular portion and one for the service portion. That is why I am wondering if we are hosting this incorrectly.

As for the subdomain, so far we have only forwarded subdomains for the specific tenants to the same ip address. So for example;

tenant1.ourdomain.com - goes to the angular site tenant2.ourdomain.com - goes to the angular site

And if you wanted to reach the service then you would go to svc.ourdomain.com.

How have you setup the service and angular website to run on iis?

We tried that, and several other combinations, but none of them have worked. I'm wondering if it's because of how we have setup the website and service on IIS.

In IIS we created two websites. One holds the service and the other holds the angular website.

Currently we are trying to get this running on our QA environment so you would go to qa.ourdomain.com to get to the website. And if you wanted to reach the service then you would go to svcqa.ourdomain.com. If we leave the settings with those values then the website works fine but you need to change the tenant manually.

If we add {TENANCY_NAME} to both the service and website then the site breaks because the website can't find the service. The service only works when you go to svcqa.ourdomain.com.

So I am confused as to how people are hosting this in their environments. Should both the angular and service be a single website in ISS? Or instead of having our service endpoint be a subdomain of ourdomain.com should it have its own separate domain? ourdomainsvc.com?

Hi,

We are trying to get asp.net zero to detect the tenant based on the url but we can't get this to work. We are using the .net core angular solution.

Here are the settings we have for the angular side.

"remoteServiceBaseUrl": "https://svc.ourdomain.com", "appBaseUrl": "https://{TENANCY_NAME}.ourdomain.com",

And here are the settings on the service side.

"ServerRootAddress": "https://svc.ourdomain.com/", "ClientRootAddress": "https://{TENANCY_NAME}.ourdomain.com/",

Any idea what we are doing wrong?

Thanks

Showing 11 to 18 of 18 entries