Open Closed

Issue when Deploying to Azure #9889


User avatar
0
manas-patnaik_HON created

2025-09-13T19:57:01.032798088Z [19:57:01 INF] Executed endpoint '/Account/Login' 2025-09-13T19:57:04.650853453Z [19:57:04 ERR] An unhandled exception has occurred while executing the request. 2025-09-13T19:57:04.650885475Z Volo.Abp.AbpException: Could not find file '~/Abp/ApplicationLocalizationScript?cultureName=en' 2025-09-13T19:57:04.650890032Z at Volo.Abp.AspNetCore.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file) 2025-09-13T19:57:04.650893660Z at Volo.Abp.AspNetCore.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName) 2025-09-13T19:57:04.650897179Z at Volo.Abp.AspNetCore.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName) 2025-09-13T19:57:04.650900734Z at Volo.Abp.AspNetCore.Bundling.BundlerBase.AddFileToBundle(IBundlerContext context, StringBuilder bundleContentBuilder, String fileName) 2025-09-13T19:57:04.650904196Z at Volo.Abp.AspNetCore.Bundling.BundlerBase.Bundle(IBundlerContext context) 2025-09-13T19:57:04.650907664Z at Volo.Abp.AspNetCore.Bundling.BundleManagerBase.<>c__DisplayClass15_0.<AddToBundleCache>b__0() 2025-09-13T19:57:04.650922433Z at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) 2025-09-13T19:57:04.650926422Z at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) 2025-09-13T19:57:04.650929933Z at Volo.Abp.AspNetCore.Bundling.BundleCache.GetOrAdd(String bundleName, Func1 factory) 2025-09-13T19:57:04.650933257Z at Volo.Abp.AspNetCore.Bundling.BundleManagerBase.AddToBundleCache(String bundleName, IBundler bundler, List1 bundleFiles) 2025-09-13T19:57:04.650936707Z at Volo.Abp.AspNetCore.Bundling.BundleManagerBase.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) 2025-09-13T19:57:04.650940229Z at Volo.Abp.AspNetCore.Bundling.BundleManagerBase.GetScriptBundleFilesAsync(String bundleName) 2025-09-13T19:57:04.650943540Z at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperScriptService.GetBundleFilesAsync(String bundleName) 2025-09-13T19:57:04.650946962Z at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) 2025-09-13T19:57:04.650950590Z at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleItemTagHelperService2.ProcessAsync(TagHelperContext context, TagHelperOutput output) 2025-09-13T19:57:04.650955098Z at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, Int32 i, Int32 count) 2025-09-13T19:57:04.650958920Z at AspNetCoreGeneratedDocument.Themes_LeptonX_Layouts_Account_Default.<>c__DisplayClass21_0.<<ExecuteAsync>b__1>d.MoveNext() 2025-09-13T19:57:04.652873135Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.652884250Z at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() 2025-09-13T19:57:04.652888191Z at AspNetCoreGeneratedDocument.Themes_LeptonX_Layouts_Account_Default.ExecuteAsync() in /home/runner/work/Triarch/Triarch/src/Triarch.CodeAdvisor.HttpApi.Host/Themes/LeptonX/Layouts/Account/Default.cshtml:line 63 2025-09-13T19:57:04.652892134Z at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) 2025-09-13T19:57:04.652895506Z at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts) 2025-09-13T19:57:04.652899116Z at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderLayoutAsync(ViewContext context, ViewBufferTextWriter bodyWriter) 2025-09-13T19:57:04.652902528Z at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) 2025-09-13T19:57:04.652905951Z at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) 2025-09-13T19:57:04.652909320Z at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, String contentType, Nullable1 statusCode) 2025-09-13T19:57:04.652921428Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultAsync>g__Logged|22_0(ResourceInvoker invoker, IActionResult result) 2025-09-13T19:57:04.652925507Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 2025-09-13T19:57:04.652929240Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) 2025-09-13T19:57:04.652932524Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) 2025-09-13T19:57:04.652936307Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() 2025-09-13T19:57:04.652939583Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.652942898Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) 2025-09-13T19:57:04.652946982Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) 2025-09-13T19:57:04.652950316Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) 2025-09-13T19:57:04.652953854Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() 2025-09-13T19:57:04.652957146Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.652960316Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) 2025-09-13T19:57:04.652963808Z at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker) 2025-09-13T19:57:04.652967188Z at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger) 2025-09-13T19:57:04.652970981Z at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.652974539Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.652978384Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.652981567Z at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.652984937Z at Volo.Abp.AspNetCore.Auditing.AbpAuditingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.652988237Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653001276Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653009079Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) 2025-09-13T19:57:04.653012639Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) 2025-09-13T19:57:04.653015989Z at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) 2025-09-13T19:57:04.653019253Z at Volo.Abp.AspNetCore.Security.Claims.AbpDynamicClaimsMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653022656Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653026636Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653029869Z at Volo.Abp.AspNetCore.Uow.AbpUnitOfWorkMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653033234Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653036774Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653039957Z at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653043325Z at Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653046691Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653050216Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653053809Z at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653057130Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653060788Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653063976Z at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpOpenIddictMiddlewareExtension.<>c__DisplayClass0_0.<<UseAbpOpenIddictValidation>b__0>d.MoveNext() 2025-09-13T19:57:04.653067733Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653070931Z at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) 2025-09-13T19:57:04.653074219Z at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653077619Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653081179Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653084458Z at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653091619Z at Volo.Abp.Studio.Client.AspNetCore.AbpStudioMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) 2025-09-13T19:57:04.653095426Z at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext() 2025-09-13T19:57:04.653099006Z --- End of stack trace from previous location --- 2025-09-13T19:57:04.653102200Z at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task) 2025-09-13T19:57:05.216968509Z [19:57:05 INF] Start processing HTTP request GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status 2025-09-13T19:57:05.217020687Z [19:57:05 INF] Sending HTTP request GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status 2025-09-13T19:57:05.365124941Z [19:57:05 INF] Request starting HTTP/1.1 GET http://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status - null null 2025-09-13T19:57:05.395227034Z [19:57:05 INF] Executing endpoint 'Health checks' 2025-09-13T19:57:05.483708673Z [19:57:05 INF] Executed endpoint 'Health checks' 2025-09-13T19:57:05.484794668Z [19:57:05 INF] Received HTTP response headers after 267.9041ms - 200 2025-09-13T19:57:05.485016701Z [19:57:05 INF] End processing HTTP request after 286.8569ms - 200 2025-09-13T19:57:05.486383151Z [19:57:05 INF] Request finished HTTP/1.1 GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status - 200 null application/json 122.9341ms 2025-09-13T19:57:13.856060016Z [19:57:13 INF] Request starting HTTP/1.1 GET http://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status - null null 2025-09-13T19:57:13.926826607Z [19:57:13 INF] Executing endpoint 'Health checks' 2025-09-13T19:57:14.067826900Z [19:57:14 INF] Executed endpoint 'Health checks' 2025-09-13T19:57:14.067863518Z [19:57:14 INF] Request finished HTTP/1.1 GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status - 200 null application/json 198.1658ms 2025-09-13T19:57:15.515551504Z [19:57:15 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2025-09-13T19:57:15.526084993Z [19:57:15 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). 2025-09-13T19:57:15.574189162Z [19:57:15 INF] Start processing HTTP request GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status 2025-09-13T19:57:15.574239402Z [19:57:15 INF] Sending HTTP request GET https://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status 2025-09-13T19:57:15.604785498Z [19:57:15 INF] Request starting HTTP/1.1 GET http://apihost-triarch-fsa9gpc2ephmcdgc.centralus-01.azurewebsites.net/health-status - null null 2025-09-13T19:57:15.615722791Z [19:57:15 INF] Executing endpoint 'Health checks' 2025-09-13T19:57:15.642864901Z [19:57:15 INF] Executing action method Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) - Validation state: Valid 2025-09-13T19:57:15.695283815Z [19:57:15 INF] Executed action method Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared), returned result Microsoft.AspNetCore.Mvc.ViewResult in 57.1194ms.:


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • The error Could not find file '~/Abp/ApplicationLocalizationScript?cultureName=en' during deployment to Azure is typically caused by missing or misconfigured static files, or by the bundling/minification process not including dynamic endpoints like /Abp/ApplicationLocalizationScript.

    • In ABP, /Abp/ApplicationLocalizationScript is a dynamic endpoint, not a physical file. If your deployment or bundling configuration tries to treat it as a static file, it will fail.

    How to Fix:

    1. Check Bundling Configuration:

      • Ensure you are not adding /Abp/ApplicationLocalizationScript as a static file in your bundle configuration. It should not be included in any AddFiles or similar methods for static bundling.
    2. Update Your Layouts:

      • In your Razor layout files (e.g., _Layout.cshtml), use the ABP-provided tag helpers or script includes for localization, not a static file reference.

      Example:

    <script src="~/Abp/ApplicationLocalizationScript?cultureName=@CultureInfo.CurrentUICulture.Name"></script>
    

    Do not add this path to any static bundle.

    1. Azure Deployment:

      • Make sure your deployment process does not remove or block dynamic endpoints under /Abp/.
      • If you use Azure App Service, ensure that all required runtime files are published and that your web.config (if present) does not rewrite or block /Abp/* routes.
    2. Clear Bundling Cache:

      • If you have previously bundled this path as a static file, clear your bundling output and cache, then redeploy.
    3. Check for Customizations:

      • If you have customized the ABP theme or layout, review those changes to ensure you are not referencing /Abp/ApplicationLocalizationScript in a way that expects it to be a static file.

    Summary:
    Remove /Abp/ApplicationLocalizationScript from any static bundle configuration. Reference it only as a dynamic script in your layout. Redeploy after clearing any old bundle outputs.

    Sources:

    • https://abp.io/docs/latest/Localization#applicationlocalizationscript

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20