I am wondering if anyone can help me, I am trying to run asp.net site which is using .net 4.8 on Windows Server 2022 Standard with IIS 10 (virtual machine). I can see other questions but they are much older versions of IIS and Windows Server and do not resolve the issue. It appears that IIS is not recognizing or refusing to run .net 4.8. When I deploy a site to IIS and then run it, it shows "HTTP Error 403.14 - Forbidden", the logs do not clarify it there is an error. Just (main IIS Log)
2024-02-03 16:41:54 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/121.0.0.0+Safari/537.36 - - localhost 403 14 0 1
Now I deployed a simple templated web applaction which runs fine in Visual Studio and IIS Express.
I have tried adding a simple Index.html file which works fine, also after installing the .NET Core Hosting Bundle IIS can run .Net Core applications fine but still can not run .net 4.8 applications. I also followed
Configuring Step 1: Install IIS and ASP.NET Modules to no success either and I can not enable NET Extensibility 4.5 as per screen shots below:
IIS settings:
Site IIS Log: (not helpful)
#Software: Microsoft Internet Information Services 10.0#Version: 1.0#Date: 2024-02-03 17:09:27#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status time-taken2024-02-03 17:09:27 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/121.0.0.0+Safari/537.36 - - localhost 403 14 0 172024-02-03 17:09:27 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/121.0.0.0+Safari/537.36 - - localhost 403 14 0 4
To cover all angles I install Visual Studio on the server to see if that would be able to run a .Net 4.8 project to which it did, but still would not work within IIS 10.
I even tried to show detailed errors in the web.config still the same result of
I then tried installing ASP.NET modules by using the command line from Configuring Step 1: Install IIS and ASP.NET Modules still not working.
I wondering if someone could help me get IIS 10 to run a .net 4.8 application