Installing ASP.NET in IIS

Published: Last Updated on 1.2K views 2 minutes read
A+A-
Reset
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

Related Posts

Leave a Reply

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
Rr Samant March 13, 2015 - 3:49 PM Reply
Rr Samant March 13, 2015 - 9:19 PM Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.