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

Activities of "geertveenstra"

The abp.tenant cookie is not deleted on returning to the host.

Hi,

I am testing on the latest zero version (5.1)

Thanx, but what would I check exactly ?

I already mentioned I get an exception page on returning to the host. In the logfile I see the following error :

Mvc.ExceptionHandling.AbpExceptionFilter - Current tenant is different than given tenant. AbpSession.TenantId: 2, given tenantId:

Is the problem to be searched for in the aspnetzero code or in the boilerplate code ? I also wonder why the cookie is needed since it seems to be working also without it ?

I noticed that when the impersonation of a tenant user is done, there is a cookie placed in the root website which contains the imporonated Tenant Id. If I remove this cookie before returning to the host portal it's working ok ?

After deployment to IIS the tenant impersonation as a host user is not working correctly (if you return from the Tenant back to the Host).

I have the dynamic url set in the appsettings.production.json configuration file: "WebSiteRootAddress": "https://{TENANCY_NAME}.domain.com/" This is working ok, <a class="postlink" href="http://tenant1.domain.com">http://tenant1.domain.com</a> gives the tenant 1 part, <a class="postlink" href="http://tenant2.domain.com">http://tenant2.domain.com</a> gives the tenant2 part. Also impersonation the tenant admin user is working correctly, but when returning to the host part, the url is <a class="postlink" href="http://domain.com/Account/ImpersonateSignIn?tokenId=3a7c88c3-2d2b-443a-b013-55d59898d5a2">http://domain.com/Account/ImpersonateSi ... d59898d5a2</a> and it gives an internal server error page.

In the logfile I can see the following error : Mvc.ExceptionHandling.AbpExceptionFilter - Current tenant is different than given tenant. AbpSession.TenantId: 2, given tenantId:

Any idea how to fix this ?

Question

Hi,

I'm in need of some designing advice :-)

I am using the MultiTenant solution where normally a tenant's user is able to see only the data of this single tenant. However now I have a requirement where certain specific users need to see (some) data of multiple tenants.

(It's a building where each tenant manages it's own visitors, but there is also a general reception desk where the logged in users need to see all visitors of all tenants)

How would I go about designing this ? Would those be host users or a specific tenant user with specific role ? Or is there another way maybe ?

Regards,

Geert

Hi,

I created a new Entity (Customer) with the new RAD tool (mulitenant Core /Jquery) After editing the record it is not visible anymore. In the database the TenantId is set to 0.

I fixed it by removing the TenantId from the CreateOrEditCustomerDto and changing the CustomDtoMapper to this :

//configuration.CreateMap<Customer, CreateOrEditCustomerDto>(); configuration.CreateMap<CreateOrEditCustomerDto, Customer>().ReverseMap();

I am not sure if this is the correct way to fix (still learing) ?

Ok, never mind. It seems I was supposed to run gulp --prod before copying the files to IIS.

Question

Hi,

After my first try deploying to IIS the site does not look right (in development all is working). I am using the Core MVC & JQuery (version 5.06) In the Chrome console I see a lot of errors :

Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-300.woff">https://portalnew.entervo-cloud.nl/font ... n-300.woff</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-regular.woff">https://portalnew.entervo-cloud.nl/font ... gular.woff</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Roboto/roboto-v18-latin-500.woff">https://portalnew.entervo-cloud.nl/font ... n-500.woff</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-500.woff">https://portalnew.entervo-cloud.nl/font ... n-500.woff</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-300.ttf">https://portalnew.entervo-cloud.nl/font ... in-300.ttf</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-regular.ttf">https://portalnew.entervo-cloud.nl/font ... egular.ttf</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Roboto/roboto-v18-latin-500.ttf">https://portalnew.entervo-cloud.nl/font ... in-500.ttf</a> Editions:1 OTS parsing error: invalid version tag Editions:1 Failed to decode downloaded font: <a class="postlink" href="https://portalnew.entervo-cloud.nl/fonts/Poppins/poppins-v5-latin-500.ttf">https://portalnew.entervo-cloud.nl/font ... in-500.ttf</a> Editions:1 OTS parsing error: invalid version tag

I see also some uncaught errors there :

Uncaught TypeError: n.DataTable is not a function at HTMLDocument.<anonymous> (host-list.min.js:1) at u (app-layout-libs.min.js:formatted:1869) at h (app-layout-libs.min.js:formatted:1880)

Uncaught ReferenceError: _ is not defined at Object.triggerUnreadMessageCountChangeEvent (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/Layout/_ChatBar.min.js:315:21">https://portalnew.entervo-cloud.nl/view ... .js:315:21</a>) at <a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/Layout/_ChatBar.min.js:50:26">https://portalnew.entervo-cloud.nl/view ... n.js:50:26</a> at c (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:37981">https://portalnew.entervo-cloud.nl/view ... js:1:37981</a>) at Object.fireWith [as resolveWith] (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:38747">https://portalnew.entervo-cloud.nl/view ... js:1:38747</a>) at Object.a.(anonymous function) [as resolve] (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:40703">https://portalnew.entervo-cloud.nl/view ... js:1:40703</a>) at Function.handleResponse (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:1200700">https://portalnew.entervo-cloud.nl/view ... :1:1200700</a>) at Object.<anonymous> (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:1199050">https://portalnew.entervo-cloud.nl/view ... :1:1199050</a>) at c (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:37981">https://portalnew.entervo-cloud.nl/view ... js:1:37981</a>) at Object.fireWith [as resolveWith] (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:38747">https://portalnew.entervo-cloud.nl/view ... js:1:38747</a>) at i (<a class="postlink" href="https://portalnew.entervo-cloud.nl/view-resources/Areas/App/Views/_Bundles/app-layout-libs.min.js:1:75754">https://portalnew.entervo-cloud.nl/view ... js:1:75754</a>)

Any idea's ?

Geert

Showing 31 to 39 of 39 entries