Deploying .NET 8 Blazor Interactive server to an "app" in IIS

Steve Wasielewski 5 Reputation points
2024-10-25T20:19:56.91+00:00

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.

User's image

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
{count} vote

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 75,051 Reputation points
    2024-10-25T22:54:32.0533333+00:00

    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 “/“.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.