Ends in:
7 DAYS
10 HRS
24 MIN
23 SEC
Ends in:
7 D
10 H
24 M
23 S

Activities of "devsumati"

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.

  • ABP Framework version: v8.0.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:

Public Web logs

[09:57:07 INF] Start processing HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:07 INF] Sending HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:09 INF] Received HTTP response headers after 2111.9678ms - 200 [09:57:09 INF] End processing HTTP request after 2112.1676ms - 200 [09:57:09 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/health - 302 0 null 2322.1667ms [09:57:09 INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://xxxx.azurewebsites.net/health, Response status code: 302 [09:57:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/health - null null [09:57:15 WRN] Could not find IdentityClientConfiguration for CmsKitPublic. Either define a configuration for CmsKitPublic or set a default configuration. [09:57:15 INF] Start processing HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:15 INF] Sending HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0

API Host logs

[09:59:20 INF] Start processing HTTP request GET http://127.0.0.1:4882/health-status [09:59:20 INF] Sending HTTP request GET http://127.0.0.1:4882/health-status [09:59:20 INF] Request starting HTTP/1.1 GET http://127.0.0.1:4882/health-status - null null [09:59:20 ERR] 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token '824e115b-0788-4d57-a6e3-f8eff97b788c', request rejected. [09:59:20 INF] Request finished HTTP/1.1 GET http://127.0.0.1:4882/health-status - 400 0 null 0.0847ms [09:59:20 INF] Received HTTP response headers after 0.5643ms - 400 [09:59:20 INF] End processing HTTP request after 0.8178ms - 400 [09:59:20 INF] Notification is sent on same window time.

Auth server logs

[09:48:19 INF] Request finished HTTP/1.1 POST https://xxxx.azurewebsites.net/auth/connect/introspect - 200 348 application/json;charset=UTF-8 2953.6649ms [09:48:22 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - null null [09:48:22 INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:48:22 INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). [09:48:22 INF] Executing action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) - Validation state: Valid [09:48:24 INF] Executed action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 1929.5354ms. [09:48:24 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. [09:48:24 INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 1940.7107ms [09:48:24 INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:48:24 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - 200 908285 image/jpeg 1956.6045ms [09:49:39 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - null null [09:49:39 INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:49:39 INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). [09:49:39 INF] Executing action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) - Validation state: Valid [09:49:43 INF] Executed action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 3792.0603ms. [09:49:43 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. [09:49:43 INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 3806.1067ms [09:49:43 INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:49:43 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - 200 908285 image/jpeg 3812.0837ms [09:52:40 INF] Lock is acquired for TokenCleanupBackgroundWorker [09:52:40 INF] Start cleanup. [09:52:40 INF] Start cleanup tokens. [09:52:41 INF] Start cleanup authorizations. [09:52:42 INF] Lock is released for TokenCleanupBackgroundWorker

Web logs

Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Carts - null null [09:49:12 INF] Executing endpoint '/Carts/Index' [09:49:12 INF] Route matched with {page = "/Carts/Index", action = "", controller = "", area = ""}. Executing page /Carts/Index [09:49:12 INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy [09:49:12 INF] Executing handler method Luvo.Web.Pages.Carts.IndexModelBase.OnGetAsync - ModelState is Valid [09:49:12 INF] Executed handler method OnGetAsync, returned result . [09:49:12 INF] Executing an implicit handler method - ModelState is Valid [09:49:12 INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. [09:49:12 INF] Bundling __bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js (1 files) [09:49:13 INF] > Minified /Pages/Carts/index.js (4780 bytes -> 2201 bytes) [09:49:13 INF] Bundled __bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js (2204 bytes) [09:49:13 INF] Executed page /Carts/Index in 60.941ms [09:49:13 INF] Executed endpoint '/Carts/Index' [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Carts - 200 null text/html; charset=utf-8 275.8597ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css?_v=638455743259205854 - null null [09:49:13 INF] The file /__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css was not modified [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css?_v=638455743259205854 - 304 null text/css 1.2781ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js?_v=638455743278181600 - null null [09:49:13 INF] The file /__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js was not modified [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js?_v=638455743278181600 - 304 null application/javascript 1.3463ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ApplicationConfigurationScript - null null [09:49:13 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:49:13 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:13 INF] Executing action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:13 INF] Executed action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 214.5988ms. [09:49:13 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:13 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 216.3628ms [09:49:13 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ApplicationConfigurationScript - 200 8658 application/javascript 218.6837ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ApplicationLocalizationScript?cultureName=en - null null [09:49:14 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationLocalizationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:14 INF] Executing action method Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ServiceProxyScript - null null [09:49:14 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:14 INF] Executing action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:14 INF] Executed action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 5.5247ms. [09:49:14 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:14 INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 6.7376ms [09:49:14 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ServiceProxyScript - 200 23503 application/javascript 8.7795ms [09:49:14 INF] Executed action method Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 219.0603ms. [09:49:14 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:14 INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 221.3792ms [09:49:14 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ApplicationLocalizationScript?cultureName=en - 200 97574 application/javascript 223.3158ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js?_v=638455743278354860 - null null [09:49:14 INF] The file /__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js was not modified [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js?_v=638455743278354860 - 304 null application/javascript 1.2318ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js?_v=638455745530172974 - null null [09:49:14 INF] Sending file. Request path: '/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js'. Physical path: 'N/A' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js?_v=638455745530172974 - 200 2204 application/javascript 1.2487ms

  • Steps to reproduce the issue:

Everything is working properly when running the application locally using visual studio. Error appears when we deploy it on azure web app. all 4 sites are configured on same domain as follows

  1. https://xxxx.azurewebsites.net (public website)
  2. https://xxxx.azurewebsites.net/admin (Web application)
  3. https://xxxx.azurewebsites.net/auth (Auth server)
  4. https://xxxx.azurewebsites.net/host (API host)

error comes in web application which is (" https://xxxx.azurewebsites.net") after login when i try to add / create record, if there are no records then error comes on index page as well.

Error Message - unauthorized

Showing 41 to 44 of 44 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06