Step 1: Enable IIS on your computer.
- go to control panel
- Add or remove programs or program and features
- Turn windows features on or off
- Internet Information Service
- select, all web management tools
- expand world wide web services
- expand Application Development Features
- check ASP.NET and .NET Extensibility
- Click OK
Step 2: Register ASP.NET 4
- For 32 bit windows in cmd prompt enter
- %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir
- For 64 bit windows in cmd prompt enter
- %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
Step 3: Configure your website to use ASP.NET 4
- right click my computer and manage
- In Services and Applications you will see IIS Manager
- On clicking it a console will open up.
- on right column of the console there is one change .NET Framework
- Change it to .net framework 4
You Are Done and you can now run your local site on localhost