3

I'm developing a dotnet application followed the passage of the reference and locally on Ubuntu it's all ok, however now I try to publish to my windows server and when access to route configurable them myself from the following error:enter image description here

In the reference he will tell me to delete the malformed element in my web.config, but I do not know what I'm doing wrong, can someone help me?

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="dotnet" arguments=".\connect-app.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="inprocess" />
  </system.webServer>
</configuration>
Marcius Leandro
  • 775
  • 1
  • 11
  • 34

5 Answers5

2

There are multiple ways that you could end up in this error.

  • The ASP.NET Core Module v2 was not properly installed and configured.

    • Install the ASP.NET Core Hosting Bundle from here
  • Verify that the AspNetCoreModuleV2 in the IIS Modules
  • Sometimes, the file system may restricts the access to some paths for the Application Pool

    • Try adding the Application Pool Identity to the respective File/Folder

      ICACLS C:\StatusApp\ /grant "IIS AppPool\YourAppPool:F"

  • Put your Hosting as "Out of Process" and see if the .NET Core Apllication is properly instantiated.

Sathish Guru V
  • 1,417
  • 2
  • 15
  • 39
1

I searched for 500.19 IIS with the 0x8007000d error code that you provided. The articles that I found state that this happens when a module is missing and / or hasn't been installed yet.

Double-check that the ASP.NET Core module for IIS is installed on the system with the web.config and go from there.

Sources:

The Horrible Story of Publishing NET Core Web Apps for Beginners

MSDN - Host ASP.NET Core on Windows with IIS

ASP.NET Forums

IIS Forums


edit:

What's in your ApplicationHost.config file? Do you have <section name="aspNetCore" overrideModeDefault="Allow" />?

Source: Error 0x8007000d when running ASP.NET Core app in IIS despite AspNetCoreModule being installed

LionMeguros
  • 51
  • 1
  • 5
  • I followed Microsoft's tutorial to get to this point, and I've seen some articles talking about how bad this error log is. so I posted here to see if anyone has anything more concrete about installing the parameters they have in my code. – Marcius Leandro Dec 14 '19 at 13:41
1

Make sure you have enabled ASP.NET feature for IIS

Install IIS and ASP.NET modules in Windows 2016

Try uninstalling and installing IIS runtime support (ASP.NET Core Module v2)

Kahbazi
  • 14,331
  • 3
  • 45
  • 76
0

1. URL rewriting is not configured correctly or not properly installed

Error 0x8007000d Maybe happens if your URL rewriting module is missing in the web.config or proper version is not installed.

Make Sure to install URL rewriting module via web platform installer.(REFERENCE)

2. check stdlog

You can also take a look at stdlog text file which is enabled in the web.config to see what exactly happens.

3.ASP.NET Core Module v2

finally as other users suggested make sure The ASP.NET Core Module v2 is installed and configured correctly

Mohammad
  • 1,549
  • 1
  • 15
  • 27
0

My issue was due to the fact the installation of the IIS was done after ASP.NET Core Hosting Bundle. This did not install the ASP.NET Core Module v2 properly.

You should have the folder C:\Program Files\IIS

I needed to repair the installation of the hosting bundle and then the ASP.NET Core Module v2 install was included.

IIS folder under Program Files

littlerani
  • 293
  • 3
  • 6