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

Activities of "Ricavir"

Hi,

I'm using ABP ZERO (abp 8.2.0) with Angular 15 (abp-web-resources ^5.7.0). For some reason, I'm getting an Internal Server Error on some POST requests . The error is :

POST https://mywebsite.com/api/services/app/QuoteType/CreateOrUpdateQuoteType   500 (Internal Server Error)
WARN:
Content-Type is not sent!

Right now, this is occuring only on Chrome browsers. If I wait 5 or 10 minutes, the same request is sent correctly (wihtout doing anything else).

When the problem occurs, If I switch to a different brower (let say Edge), the problem do not occur for the same request. We noticed that this can happen in one specific POST request or, sometimes, to all requests.

Should be then an issue on client side.

Can you please provide some help to resolve this ?

Hi team !

I have an existing tenant that has been created in host database. I would like to switch him from host database to a new dedicated database. The new database connection string will be set in tenant settings. Do you have some guidelines to migrate its existing data to the new database ?

Answer

Hi @Ismcagdas,

Yes, it is possible to configure a custom host name on Azure CDN, it seems easy. But with ABP, I don't know how to proceed.

Do you mean that I don't need to change anything in my app settings/config ? Do I just need to create a DNS record to redirect all app requests to the CDN endpoint (server and client) ?

In fact, I would appreciate some guidance on how to implement a CDN with ABP. I'm using the same URL for server and client (angular) and tenant is being resolved from the URL (thanks to {TENANCY_NAME})

Sure,

Here is the logs :

WARN 2023-10-25 07:03:09,655 [25 ] me.Caching.Redis.AbpPerRequestRedisCache - IFeatureCollection has been disposed.
Object name: 'Collection'.
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Items()
at Abp.Runtime.Caching.Redis.AbpPerRequestRedisCache.TryGetValueAsync(String key)
WARN 2023-10-25 07:03:09,655 [25 ] me.Caching.Redis.AbpPerRequestRedisCache - IFeatureCollection has been disposed.
Object name: 'Collection'.
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Items()
at Abp.Runtime.Caching.Redis.AbpPerRequestRedisCache.TryGetValueAsync(String key)

Hi @Ismcagdas,

I still have these warnings wit Abp 8.2.0. This should have been fixed, no ?

Answer

Hi @Ismcagdas,

No, API and app are hosted in the same server. The main point is how do you manage {TENANCY_NAME} in the URL when using a CDN endpoint.

Question

Hi,

I need to activate Azure CDN for my app that is running over Azure App Service. I'm using Angular v15 and .NET7. Thus, I need to update appsettings file and appconfig file. I followed this article : https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Step-by-step-publish-to-azure-angular-staticsite but it does not mentioned tenant resolution...

My current appsettings file is :

"App": {
    "ServerRootAddress": "https://{TENANCY_NAME}.xxxx-app.com/",
    "ClientRootAddress": "https://{TENANCY_NAME}.xxxx-app.com/",
    "CorsOrigins": "https://*.xxxx-app.com,http://*.xxxx-app.com",
  },

My current angular appconfig file is :

{
  "remoteServiceBaseUrl": "https://{TENANCY_NAME}.xxxx-app.com",
  "appBaseUrl": "https://{TENANCY_NAME}.xxxx-app.com"
}

Let's say that CDN endpoint is : http://xxxx-app.azureedge.net

Can you please provide some advice to update app URL's with tenant resolution {TENANCY_NAME} ?

So I found a ticket mentioning this issue here : https://support.aspnetzero.com/QA/Questions/10676/Impersonation-does-not-work-when-deployed-to-Azure-as-single-solution#answer-66330984-19de-b804-a427-3a003e99f3d1

The workarround is working

But why this happened ? Is there other impacts linked to this ?

Angular (single solution) .NET 5 Abp 6.6.2

Hi,

I recently upgraded my app to activate hangfire and twofactor auth (also added MVC controllers to be able to log in and have access to hangfire dashboard) While everything was working well on development server, I realize in production that impersonation and switching to a linked account was not working anymore.

Host and Angular are in the same server and within the same domain

Currently, when I try impersonation, I'm automatically logged out. Same behavior if I try to switch to another account.

I'm seeing a redirection to index.html before being logged out... and this was not happening previously.

I've tried several things (like deactivating hangfire) but I still have the same behavior.

Can you please help me fixing this ? I'm not very confortable with that parts of the app :/

Hi,

Here is the issue : https://github.com/aspnetzero/aspnet-zero-core/issues/4667

Showing 11 to 20 of 325 entries