Need Help Understanding Why .NET SDK and Runtime Were Required for IIS Hosting of ASP.NET
I’m hosting an ASP.NET Core application (v6.0.33) on an AWS virtual machine with IIS.
I installed the .NET Hosting Bundle matching the application’s version. After verifying the website runs fine with dotnet run, I encountered an “HTTP Error 500.30 – ASP.NET Core App Failed to Start” when trying to access it via IIS.
After troubleshooting extensively—including checking various threads on Stack Overflow, GitHub, and Microsoft forums—I found this article https://www.quickpickdeal.com/coding/http-error-500-30-asp-net-core-app-failed-to-start-with-iis-a-real-world-solut that suggested installing not only the Hosting Bundle but also the .NET SDK and Runtime. Surprisingly, this approach worked.
My question is: Why did I need all three components (Hosting Bundle, SDK, and Runtime) to get this application working in IIS? I expected the Hosting Bundle alone to be sufficient for deployment. Could there be a dependency that IIS requires that isn’t covered by the Hosting Bundle?
I’m hosting an ASP.NET Core application (v6.0.33) on an AWS virtual machine with IIS.I installed the .NET Hosting Bundle matching the application’s version. After verifying the website runs fine with dotnet run, I encountered an “HTTP Error 500.30 – ASP.NET Core App Failed to Start” when trying to access it via IIS. After troubleshooting extensively—including checking various threads on Stack Overflow, GitHub, and Microsoft forums—I found this article https://www.quickpickdeal.com/coding/http-error-500-30-asp-net-core-app-failed-to-start-with-iis-a-real-world-solut that suggested installing not only the Hosting Bundle but also the .NET SDK and Runtime. Surprisingly, this approach worked.My question is: Why did I need all three components (Hosting Bundle, SDK, and Runtime) to get this application working in IIS? I expected the Hosting Bundle alone to be sufficient for deployment. Could there be a dependency that IIS requires that isn’t covered by the Hosting Bundle? Read More