IIS 10.0 Detailed Error 500.19 Error Code: 0x8007000d - asp.net-core

After publish my project in local IIS server, When I execute the install program: http://localhost/codeIIS/ I get an error 500.19 Internal Server error.
Here is my Platform Details:
IIS-10.0
Windows 10 x64bit OS
In my web.config file code here:
<?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=".\CONSOLIDATION PORTAL.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 8240d3ab-7972-48e2-91ac-f9f57451ae7e-->
The error is Here:
Error
How to fix that error. Thanks

From the microsoft documents page -
https://learn.microsoft.com/en-us/troubleshoot/iis/http-error-500-19-webpage#hresult-code-0x8007000d
This is due to malformed XML in your webconfig. Should there be a space between consolidation and portal here? -
processPath=".\CONSOLIDATION PORTAL.exe"

Just delete .vs hidden folder and execute again.
Greetings

Related

Net Core 5 project refuses to run

I have gone through many sites figuring out how to prepare Net Core 5 project to run in IIS. I did publishing, I have downloaded all the needed pieces (or so I think) from here:
Link
My web.config looks like this:
<?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=".\RoundTheCode.ReactSignalR.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
But when I run website like this:
http://localhost:8090/methodname I get:
Feels like I am still missing some parts of the framework. Can someone please explain what needs to be checked for that?
Thanks

HTTP Error 500.19 - Internal Server Error-0x8007000d

I encountered this error when I tried to host my asp .net core project on local iis.
I have installed the asp .net hosting bundle, checked the permissions to my web.config file but still of no use.
My web.config file is as follows:
<?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=".\SampleApp1.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: e4b7dcc7-c9c3-48c5-9a12-0a9ee0c9ac2c-->
My asp .net version is 3.1.201.
Also, usually at the error page you should see the physical path as well but in my case that's empty though I set the physical path to my web files.

Deploying Seq on IIS

I'm trying to Deploy Seq by Datalust on IIS and I'm getting this error message:
HTTP Error 500.30 - ANCM In-Process Start Failure
here is the error in windows event viewer
Failed to start application '/LM/W3SVC/2/ROOT', ErrorCode '0x8007023e'.
here is the web.config file:
<?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=".\Seq.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
the official documents are only available for deployment on Azure using Docker image or self hosted Kestrel application. Is my approach possible?
Seq's Windows hosting infrastructure uses HTTP.sys and not the ASP.NET Core/IIS integration, so this is not possible as far as we know, today.
IIS can be used as a reverse proxy in front of Seq, however, which covers some of the scenarios in which you might want to do this.

"The specified CGI application encountered an error and the server terminated the process" on gearhost

Im trying to deploy a net core 2.2 web app on gearhost but im getting an error that says "The specified CGI application encountered an error and the server terminated the process."
The app works fine without problems on localhost but everytime i try to publish it to gearhost, i get that error.
Here is my web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\app.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>

HTTP Error 500.19 - Internal Server Error (says invalid web.config, but its valid)

This is on a brand new server running windows 2016, installed the hosting bundle, set the app pool to no managed.
Here is my web.config (generated by vs, using a default, nothing changed asp.net 2.0 web app)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\WebApplication2.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
I had not installed the hosting bundle properly.. now its installed properly it all works