host the blazor wasn in IIS

sblb 1,166 Reputation points
2023-05-31T20:53:54.0866667+00:00

Hi,

I've created the application with blazor wasm.

The application run well in VStudio 2022.

I publish in the folder. it's OK

I run the .exe the app works well!

After that, I move on to configure IIS.

I create the site and configure the pool.

I configure the DNS host file in C:\Windows\System32\drivers\etc

User's image

The repository of the app seems accessible.

with all this I get this:

User's image

How set up the DNS address?

Do I need to do anything else on my app or IIS?

I've made several attempts on the internet to publish my app: folder, web deploy without success,

I'd really appreciate it if someone could help me set up my site.

Thanks in advance

Internet Information Services
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,406 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 57,241 Reputation points
    2023-06-01T18:17:36.1466667+00:00

    you need to config web deploy on IIS.

    https://learn.microsoft.com/en-us/visualstudio/deployment/tutorial-import-publish-settings-iis?view=vs-2022

    or do a file publish to the app folder location defined in IIS.

    note: because you defined the DNS name in localhost it will only work on that machine. did you use host name in the IIS app binding? otherwise just use localhost.

    your localhost file implies that visual studio is publishing to an IIS server hosted on the same box.

    0 comments No comments

0 additional answers

Sort by: Most helpful