Trying to install SharePoint 2013 on server 2012 Unable to install the application to web server IIS role

 

 

We were trying to install SharePoint 2013 (Foundation) on server 2012 and getting error during prerequisite installation.

 

We collection data from temp directory. In logs we can clearly see that it throws error while enabling ASP.NET v4.0.30319

 

2013-02-19 13:16:28 - "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe" -i

2013-02-19 13:16:28 - Install process returned (0)

2013-02-19 13:16:28 - [In HRESULT format] (0)

2013-02-19 13:16:28 - "C:\Windows\system32\cscript.exe" "C:\Windows\system32\iisext.vbs" /enext "ASP.NET v4.0.30319"

2013-02-19 13:16:28 - Install process returned (1)

2013-02-19 13:16:28 - [In HRESULT format] (-2147024895)

2013-02-19 13:16:28 - Error when enabling ASP.NET v4.0.30319

2013-02-19 13:16:28 - Last return code (1)

2013-02-19 13:16:28 - Reading the following DWORD value/name...

2013-02-19 13:16:28 - Flags

2013-02-19 13:16:28 - from the following registry location...

2013-02-19 13:16:28 - SOFTWARE\Microsoft\Updates\UpdateExeVolatile

2013-02-19 13:16:28 - Reading the following string value/name...

2013-02-19 13:16:28 - PendingFileRenameOperations

2013-02-19 13:16:28 - from the following registry location...

2013-02-19 13:16:28 - SYSTEM\CurrentControlSet\Control\Session Manager

2013-02-19 13:16:28 - Reading the following registry location...

2013-02-19 13:16:28 - SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired

2013-02-19 13:16:28 - Error: The tool was unable to install Application Server Role, Web Server (IIS) Role.

2013-02-19 13:16:28 - Last return code (1)

 

 

We manually added support for ASP.NET 4.5 on IIS 8 for that we followed following article.

 

http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45