Home ProgrammingASP.NET Installing ASP.NET in IIS

Installing ASP.NET in IIS

by John Bhatt
405 views
Hi,
Today we will learn how to Install .NET in IIS.
By default IIS is turned Off. To Turn on we will go to Control panel > programs > turn windows feature on or off.

Check all options by Expanding and Make sure that you got the Internet Information Services checked fully as in Above screen. Then you need not to install any more scripts to host asp.net websites.

Installing ASP.NET in IIS

Now If ASP.NET Websites are not running and throwing error like

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://localhost:80/JOHNSAPP/DEFAULT.ASPX
Physical Path C:inetpubwwwrootJohnDefault.aspx
You should Install ASP.NET (configure IIS for ASP.NET).

Here are some basic steps to do so,
Open Command Prompt as Administrator
Navigate to C:

C:>cd Windows
C:Windows>cd Microsoft.NET

C:WindowsMicrosoft.NET>cd Framework

Now you will be at

C:WindowsMicrosoft.NETFramework>

First Decide what version are you using. ASP.NET 1.0, 1.1, 2.0, 3, 3.5 , 4 or 4.5 (if Installed).
Then type following code in Command Prompt

C:WindowsMicrosoft.NETFramework>cd v4.*      //installing ASP.NET V4.0 here.
C:WindowsMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis -i

Installing ASP.NET in IIS

Command Prompt will Install Code and You are now Ready to Access your ASP.NET Site with Localhost.

Best of Luck….
John Bhatt

You may also like

6 comments

Rr Samant March 13, 2015 - 9:19 pm Reply
Nero Hunter October 11, 2012 - 6:39 am

I followed your tutorial and really found it easy to have ASP.NET in IIS. Without an error this worked fine for me.

Reply
John Bhatt October 11, 2012 - 10:08 am

Thanks, It is nice to hear that someone got help by my posts.

Reply
Rr Samant March 13, 2015 - 9:19 pm Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Installing ASP.NET in IIS

by John Bhatt time to read: 1 min
6