I started to install .NET 8 and create a new ASP.NET Core MVC web app project, and realized that IIS Express is needed to run the project.
So after installing it, I activated it through turn window feature on or off
and also repaired the Hosting Bundle. But when I see the applicationhost.config
file in config/templates
path, the following lines:
<add name="AspNetCoreModule"...
<add name="AspNetCoreModuleV2"...
do not exist in the file, While I read somewhere, apparently they should be added after repair. now in rider IDE by pressing the run button, I get this error:
Process finished with exit code -1,073,741,502
and my project does not run.
"While I read somewhere, apparently they should be added after repair" is wrong. ASP.NET Core module for IIS Express isn't installed from the standard Hosting Bundle like you assumed but as part of VS installation. So your steps to install IIS and Hosting Bundle have no impact on IIS Express and that's expected.
To test .NET 8 with your ASP.NET Core project at this very moment, make sure you choose IIS in VS, not IIS Express.
You can switch back to IIS Express once your VS2022 is updated after .NET 8 is officially released by Microsoft.