Back to Devexpress

'dx-blazor.js File is Not Found' When a Reverse Proxy is Used

blazor-403268-troubleshooting-resource-related-issues-dx-blazor-js-file-is-not-found-when-a-reserve-proxy-is-used.md

latest1.4 KB
Original Source

'dx-blazor.js File is Not Found' When a Reverse Proxy is Used

  • Sep 19, 2024

When you run a Blazor application behind a reverse proxy, the following exception can occur: dx-blazor.js file is not found.

DevExpress Blazor components generate a URL to the dx-blazor.js library based on the NavigationManager object. The NavigationManager.BaseUri property corresponds to the href attribute of your document’s <base> element on the wwwroot/index.html (Blazor WebAssembly), Pages/_Layout.cshtml (Blazor Server), or Components/App.razor (Blazor Web in .NET 8 and .NET 9 ) page. The error occurs if this property does not contain your reverse proxy path.

Do one of the following to resolve the issue: