Skip to main content

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

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: