The base href should match the iis app name and sets the base path for relative links. The links should be relative, and not start with a “/“.
Deploying .NET 8 Blazor Interactive server to an "app" in IIS
Steve Wasielewski
5
Reputation points
Am trying to install a blazor 8 server app on IIS. Everything works fine within VS2022, but once I deploy the files to IIS I get some errors.
I've tried <base href="/BlazorApp4/" /> or <base href="/" /> and <base href="..." />
and nothing seems to work. The app works fine as a website and these errors are result of trying to setup as application. Let me know, if anyone has had any issues with this. Are we missing a update or something.
Thanks
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,672 questions