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