0

I'm trying to host an ASP.NET Core 8 MVC application on IIS (Windows 10), but the application fails to start. The browser just hangs, and in the Event Viewer I noticed it's trying to open a file, though it's unclear which one.

  • IIS version: [insert IIS version,10.0]
  • .NET Hosting Bundle is installed

web.config looks like this:

<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\LSA.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
    </system.webServer>
  </location>
</configuration>

ISSUE :IIS is not executing the application and is instead serving the file as a static download

1)Verified that ASP.NET Core Module (AspNetCoreModuleV2) is listed in the handler mappings

2)Modified hostingModel="InProcess" in web.config

3)checked iisversion in local and in server

4)Tried Giving Folder Permissions for IIS

5)verified dotnet hosting bundle installed using command dotnet --info

6)Tried connecting via SQL*Plus to validate credentials and reachability

7)Noticed published app was missing .config extension,After this, received 403 Forbidden

8)Confirmed App Works on Local IIS Express

9)Removed .dll from MIME type in IIS

1
  • Don’t paraphrase an error message. Please edit the question and show detailed of the event log entry you saw in Event Viewer, even as screenshots. Commented Jun 17 at 15:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.