locked
Error 0x8007000d browsing blazor site RRS feed

  • Question

  • User-1165400470 posted

    Hi

    This is my first blazor deployment. I am using the standard 'hello world' blazor app created by vs 2019 (not https enabled). I have not made any changes to the default app except setting configuration to x86 debug. App works fine within vs 2019 with IIS Express.

    The server is a Windows Server 2012 R2 and has the following;

     - WebSockets enabled on IIS.
     - url rewrite 2.1 extension installed.
     - Latest releases of 3.1 Core hosting bundle (3.1.11) and x86 SDK (3.1.405) packages installed.

    I have configured the IIS site and published the project to the relevant site folder. When I browse the site using the domain http://myapp.mydomain.com I get the error page below at the end. I looked up error 0x8007000d and it seems to suggest there is an issue with the web.config file. My web.config file is as below which is created by the vs 2019 by default.

     <?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="dotnet" arguments=".\BlazorApp1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
         </system.webServer>
       </location>
     </configuration>
     <!--ProjectGuid: 86c5f0a6-4ea7-49fa-8d68-18952a2fb9b3-->

    What am I doing wrong and how can I get  the blazor app to run?

    Thanks

    Regards


        HTTP Error 500.19 - Internal Server Error
        The requested page cannot be accessed because the related configuration data for the page is invalid.
        
        Detailed Error Information:
        Module    IIS Web Core
        Notification    Unknown
        Handler    Not yet determined
        Error Code    0x8007000d
        Config Error    
        Config File    \\?\E:\myapp\web.config
        Requested URL    http://myapp.mydomain.com:80/
        Physical Path    
        Logon Method    Not yet determined
        Logon User    Not yet determined
        
        Config Source:
           -1: 
            0: 

    Friday, January 15, 2021 8:38 AM

Answers

  • User-939850651 posted

    Hi yahya01,

    Error Code: 0x8007000d

    This error occurs because the ApplicationHost.config or Web.config file contains a malformed XML element, normally we can solve this problem by installing the ASP NET Core hosting module, but it doesn’t seem to work on your side.

    How do you deploy the blazor application on IIS? You could refer to this link about how to Deploying A Blazor Application On IIS.

    This link has the same problem, you can use it as a reference, compare your web.config and applicationHost.config file, If it still doesn't work, please post your applicationHost.config file. Error Code 0x8007000d

    Best regards,

    Xudong Peng

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 18, 2021 4:07 AM