Running aspnet_regiis.exe -ir can repair it in this case. NET not registered correctly my test (falsely) succeeds, because the output is (contains version 4.0):Ģ.0.
So now, I runĪspnet_regiis.exe -lv to list versions (as suggested
But no reliable solution found yet.ĪFAIK, registry entries reading sometimes may not work correctly. The issue) before any installation steps started. Instead, I want to show some warning (and hint how to solve If ASP.NET 4.0 not registered on the IIS, later during the installation just installed application cannot be run and returns 500 internal server error (and it is too late to solve the problem). On the left panel of the Server Manager dialog box, click Roles. Click Start > Administrative Tools > Server Manager.
Test it in the installer as prerequisite, before ASP.NET application installation start. To learn how to enable IIS and the required IIS components on Windows Server 2008/2008 R2, see the instructions below. Is there any reliable way how to check whether ASP.NET 4.0 registered on IIS 7.5 programmatically? I need to