Deploying 'Self-Contained' (Not relying on installed .NET Hosting bundle) .NET Core hosted Blazor WebAssembly App to IIS

0

*Note, I asked this earlier and it was closed because it was a supposed duplicate of this question asp.net core web api published in IIS after moved to different IIS server pc gives error 500.19 (0x8007000d)

However, that question and the one answer I received were about installing .NET Core Hosting Bundle which I don't believe applies since this is a 'SELF-CONTAINED' deploy. Am I missing something? So, again...

I have developed a Blazor WebAssembly App that will be used on a Server running Windows 2012 on our Intranet. This is targeting .Net 5.0 Core Hosted and Self-Contained. I need to deploy to IIS 8.5 and have some questions.

  1. When I add the website in IIS, do I point to the root deploy directory with the executable and web.config? Is there anything else I need to do so that IIS will find the index file in the wwwroot sub-directory?
  2. Is is appropriate to put the deploy directory for this app directly under inetpub as long as I give permissions to my virtual App Pool to it?
  3. The publish task created a rather large BlazorDebugProxy directory. This is for release so I don't understand why this was created. Is there a way to prevent this from happening?

I have tried to set this up the best I can after searching for hours. I found posts with some related information but nothing showing how to set up IIS for the self-contained app or answer my other questions above.

Note that when I try to browse to the site from IIS, I get a 500.19 'The requested page cannot be accessed because the related configuration data for the page is invalid.' I have not made changes to the file as it was created by the publish process. It is:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath=".\AppName.Server.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: 60862cf1-bea8-48f4-8ae9-270f2f537927-->
blazor-webassembly
asp.net-core-hosted-services
asked on Stack Overflow Aug 18, 2020 by David Bowser • edited Aug 18, 2020 by David Bowser

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0