Updated on Kisan Patel
Full error:
The possible solution is to install “ASP.NET v4.0” as Application Pool on IIS.
To install open command prompt (Press Windows + R
and type cmd
and press ENTER).
Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
and press ENTER.
Type aspnet_regiis.exe -ir
and press ENTER again.
This will installing .NET’s framework into IIS for you.
After successful install Close the command prompt.
Now, you need to modify the Application Pool for your site.
Expand out your Sites node and locate the site you want to modify (select it).
To the right you’ll notice “Basic Settings…” just below the Edit Site text. Click this, and a new window should appear.
Select the .NET 4 Application pool using the “Select…” button and click OK. Restart the site.
It’s Done!
Source:
http://stackoverflow.com/questions/4890245/how-to-add-asp-net-4-0-as-application-pool-on-iis-7-windows-7