Activités de "devsumati"

hi

This is an environment/deployment problem, I have no experience.

Hi maliming, Could you please assign this ticket to the team who has experience related to this.

Yes that's the problem I am trying to solve

Hi I am running it in local in release mode and it carries all the headers.

hi devsumati

Please output the HTTP request info to the logs in your Controllers

You can inject the ILogger<Controller> and write the headers to logs.

var headers = HttpContext.Request.Headers 
    .Select(header => header.Key + " : " + header.Value) 
    .ToList() 
abc.Controllers.Carts.CartController.GetListAsync (abc.HttpApi)' 
abc.Controllers.Categories.CategoryController.GetListAsync (abc.HttpApi)' 
abc.Controllers.Addresses.AddressController (abc.HttpApi). 

I am unable to understand what you are trying to say. can you please send me detailed info for the same where to write the given code or a sample code with above configuratio.n

Hi maliming, I am using same database and user in local it is working perfectly so i don't think it is related to permission. It is throwing exception only when it is deployed in azure web app. and i think problem is coming due to "MS-ASPNETCORE-TOKEN' does not match the expected pairing token '824e115b-0788-4d57-a6e3-f8eff97b788c', request rejected." and i am not able to find solution for this.

I will share full log with MinimumLevel.Debug as soon as it is deployed with changes in azure. Thanks

so how can i solve the issue. i can not find "UseIISIntegration" in my code and i am using "inprocess" hosting model in webconfig also i have already tried "OutOfProcess". But the issue is same. whenever i try to open anything it says unauthorized.

please suggest what should i change and where should i change.

Thanks

Hi,

You can remove the UseIISIntegration

When hosting in IIS, IIS passes custom headers to the asp.net application which will be missing when hiting the asp.net core process directly. When using IIS to reverse proxy asp.net core, you should only access it via IIS.

https://learn.microsoft.com/en-us/archive/msdn-technet-forums/c4fda121-5459-4274-81bd-94bfe9379c37

Hi liangshiwei, Thanks for the help but I cannot find "UseIISIntegration" anywhere in my code. So is there any other setting which might be causing this issue because i can not perform any action on deployed application. It always says unauthorized. Also for your reference i am deploying it in azure web app dotnet 8 using github actions.

Affichage de 1 à 7 sur 7 entrées
Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11