Adnan Shaukat
Adnan Shaukat

Reputation: 23

HTTP 500.19-Internal Server Error. without any config Error

I am trying to host a asp.net mvc web application on iis but having this error enter image description here

Now the problem is that it does not have any error in the Config Error: section. I have given the permission to the folder for IIS_IUSERS but still no success. I have almost every solution I come accross on internet, but nothing is solving my problem. My config file is this

<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="dotnet" arguments=".\CECDashboard.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
      <environmentVariables />
    </aspNetCore>
  </system.webServer>
</configuration>

I have also tried changing DefaultAppPool .NET CLR from v4.0.30319 to v2.0.50727 but still no success.

I have also tried pass-through authentication and specific user but both with the same results (no success)

Please suggest me something. I will be very thankful.

Upvotes: 1

Views: 1266

Answers (1)

Abraham Qian
Abraham Qian

Reputation: 7522

It seems that this is not an Asp.Net Core application, just Asp.net framework MVC application.
Asp.Net application requires certain windows feature to run it. please enable the Asp.Netfeature in the windows features.
enter image description here
If the web application is indeed a DotNet Core MVC application, please consider installing Asp.net Core Hosting Bundle, which includes the DotNet Core Runtime and IIS support.
https://dotnet.microsoft.com/download/dotnet-core/current/runtime
Feel free to let me know if the problem still exists.

Upvotes: 1

Related Questions