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

Activities of "DennisAhlin"

Yes, I restarted the app, dropped the entire database, redeployed it and emptied all cache in the host admin interface. Hopefully the setting shouldn't be trailing somewhere.

I can go to all <a class="postlink" href="http://tenant1.api.staging.mydomain.com">http://tenant1.api.staging.mydomain.com</a>, <a class="postlink" href="http://default.api.staging.mydomain.com">http://default.api.staging.mydomain.com</a> and <a class="postlink" href="http://api.staging.mydomain.com">http://api.staging.mydomain.com</a> and see the Swagger interface.

Ok, I will try with IIS solution locally.

I did have a bad config value in WebSiteRootAddress. It was http://{TENANCY_NAME}.staging.mydomain.com and I have now changed to http://{TENANCY_NAME}.api.staging.mydomain.com. It did no difference, though. I can't go to any other tenant either, like tenant1.staging.mydomain.com. I get the same error modal there even though the first <a class="postlink" href="http://tenant1.api.staging.mydomain.com/AbpUserConfiguration/GetAll">http://tenant1.api.staging.mydomain.com ... ion/GetAll</a> OPTIONS request gets a 204 response.

It still doesn't work to go to default.localhost:4200, how can I solve that?

In staging, though, suddenly I can only log in as host admin. Even when I go to default.staging.mydomain.com I cannot log in with default tenant admin credentials, only with host admin, and I get logged in as host admin?

I have now updated to ABP 1.5 and AN0 3.3.0 and trying with this configuration.

Localhost: This works, but when browsing localhost:4200 I get to login without tenant selector and when logged in I am logged in on default tenant. And when browsing default.localhost:4200 i get the same error as before. I assume that default... does not work because I need to configure IIS or hosts file in some way to redirect default.localhost to localhost? How can I do that?

angular appconfig.json:

{
  "remoteServiceBaseUrl": "http://{TENANCY_NAME}.localhost:22742",
  "appBaseUrl": "http://{TENANCY_NAME}.localhost:4200"
}

.Net appsettings.json:

"App": {
    "WebSiteRootAddress": "http://{TENANCY_NAME}.localhost:22742/",
    "CorsOrigins": "http://localhost:4200/, http://default.localhost:4200"
  }

Staging: Now "works" with this configuration. However, when I go to <a class="postlink" href="http://staging.mydomain.com">http://staging.mydomain.com</a> I get the login screen without the tenant selection section and when I log in I get logged in as default. The same behaviour as if I go to <a class="postlink" href="http://default.staging.mydomain.com">http://default.staging.mydomain.com</a> (where it is expected).

angular appconfig.json:

{
  "remoteServiceBaseUrl": "http://{TENANCY_NAME}.api.staging.mydomain.com",
  "appBaseUrl": "http://{TENANCY_NAME}.staging.mydomain.com"
}

.Net appsettings.json:

"App": {
    "WebSiteRootAddress": "http://{TENANCY_NAME}.staging.mydomain.com/",
    "CorsOrigins": "http://staging.mydomain.com/,http://default.staging.mydomain.com/"
  }

I get this too, I'm using Azure.

Showing 21 to 25 of 25 entries