Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Errors in IE 11/Edge and subdomain / tenant subdomain #1983


User avatar
0
proovit created

Hello Guys,

There is a problem with IE and sub domains in general (1) and tenant sub domain (2).

When using a new site (no changes at all) and set it up in IIS 7.5 (win 2008 R2) This happens ONLY with IE.

<ins>1: test.domain.com</ins> After logging in as host (no tenant) I go to "Administration" > "Settings" and change the "Web site root address" to "test.domain.com". Host is working well then. Logging in as tenant (Tenants > Actions > Log in as this tenant) and select admin. Error: An error has occurred! Error detail not sent by server. (multiple times, 18)

<ins>2: domain.com and tenant subdomain</ins> After logging in as host (no tenant) I go to "Administration" > "Settings" and change the "Web site root address" to "http://{TENANCY_NAME}.hetdossier.nl/". [Save All] Host is working well then. Logging in as tenant (Tenants > Actions > Log in as this tenant) and select admin. Error: An error has occurred! Error detail not sent by server. (multiple times, 18)

<ins>F12 reveils:</ins> <span style="color:#BF0000">TypeError: Unable to get property 'userName' of undefined or null reference at vm.getShownUserName (<a class="postlink" href="http://default.hetdossier.nl/App/common/views/layout/header.js:26:25">http://default.hetdossier.nl/App/common ... r.js:26:25</a>) at fn (Function code:2:220) at Anonymous function (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:126:474">http://default.hetdossier.nl/Scripts/an ... js:126:474</a>) at m.prototype.$digest (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:142:291">http://default.hetdossier.nl/Scripts/an ... js:142:291</a>) at m.prototype.$apply (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:145:399">http://default.hetdossier.nl/Scripts/an ... js:145:399</a>) at l (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:97:248">http://default.hetdossier.nl/Scripts/an ... .js:97:248</a>) at D (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:101:373">http://default.hetdossier.nl/Scripts/an ... js:101:373</a>) at w.onload (<a class="postlink" href="http://default.hetdossier.nl/Scripts/angular.min.js:102:397">http://default.hetdossier.nl/Scripts/an ... js:102:397</a>)</span>

<span style="color:#000000">The problem is that in header.js the function "vm.getShownUserName" has no "appSession.user" and no "appSession.tenant". They are null. </span> Thanks,

Erik


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thank you for informing us, I have reproduced this error and created an issue about it. Please follow <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/395">https://github.com/aspnetzero/aspnet-zero/issues/395</a>.