I'm developing a .net 5.0 blazor wasm application. When I run the app form visual studio using IIS Express and navigate to https://localhost:5001/docs/simple.pdf, the file is served in browser.
However the same does not work after deploying the blazor wasm app to IIS. I'm not getting any error instead my Not Found Route template screen gets loaded.
Here is the screen prints:
wwwroot of blazor wasm app:
IISExpress loading the document:
IIS virtual directory path:
IIS not loading the document and display NotFound Route template:
I also noticed none of the files in wwwroot is not directly accessible in browser in IIS. Please assist on what I'm missing.




Blazor WebAssembly is not involved in serving your files.
This is something to configure in IIS.