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 the Blazor WASM app:
IIS Express loading the document:
IIS virtual directory path:
IIS not loading the document and displaying a NotFound Route template:
I also noticed none of the files in wwwroot is not directly accessible in browser in IIS.



