Base solution for your next web application

Activities of "DennisAhlin"

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/"
  }

Hi! I've been trying to get this to work for a few days now. How am I supposed to configure host and client to be able to use multi tenancy, both in localhost, staging and production servers? Solution is .NET Core + Angular 2. In all environments, when I go localhost:4200/staging.mydomain.com/mydomain.com or default.localhost:4200/default.staging.mydomain.com/default.mydomain.com i get the centered loading spinner and after a while a modal with "An error occured/Error detail not sent by server.". I can't see any failed requests in the Network view in Chrome Developer Tools.

Localhost: Currenty I have configured angular appconfig.json like this:

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

and .Net appsettings.json like this:

"App": {
    "WebSiteRootAddress": "http://localhost:22742"
  }

Staging: 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/"
  }

Production: Angular appconfig.json:

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

.Net appsettings.json:

"App": {
    "WebSiteRootAddress": "http://{TENANCY_NAME}.mydomain.com/"
  }

Please help, what am I doing wrong? :geek:

I get this too, I'm using Azure.

Showing 31 to 34 of 34 entries