Skip to main content
A newer version of this page is available. .

'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/_Host.cshtml (Blazor Server in .NET 5.0 ), or Pages/_Layout.cshtml (Blazor Server in .NET 6.0) page. The error occurs if this property does not contain your reverse proxy path.

Do one of the following to resolve the issue: