Initial Requirements:1)Install the
Microsoft .NET framework version 2.0 (available as free download in the official site of Microsoft).2)Your system should have
Microsoft Visual Studio 2005 or higher version (you can get free download of Visual Studio express edition from Microsoft’s site).3)Do remember that you need
Microsoft .NET SDK v2.0 for running the website in Visual studio (You can get this as free download from Microsoft’s site).Installing
IIS:1)Place the
Windows XP Professional CD-ROM into your CD - ROM Drive.2)Open Control Panel and select
‘Add/Remove Windows Components’ from the
‘Add/Remove programs’3)Place a tick in the check box for
'Internet Information Services (IIS)' leaving all the default installation settings intact.4)Once the installation is complete you can remove the XP CD from the drive.5)In order to check the proper installation of IIS, open internet explorer and type
'http://localhost' in the address bar. On hitting enter, an ‘iishelp’ page will open.
6)If the page doesn’t open then there is a problem with the services.
7)To start the services, Run à Type
‘services.msc’. 8)In the services, right click
‘IIS Admin’ and select properties. In the properties, select
‘Automatic’ for the ‘Startup Type’. Click ‘apply’ and then ‘start’ (If ‘start’ is not highlighted don’t worry – it means the service has started)
9)Again in the services, right click
‘World Wide Web Publishing’ and select properties. In the properties, select
‘Automatic’ for the ‘Startup Type’. Click ‘apply’ and then click ‘start’.
10)Now type
'http://localhost' in internet explorer and check for the ‘iishelp’ page. If it opens then the IIS is working fine.Configuring
IIS for the website:1)Open command prompt (Runàcmd)2)Change the directory to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
3)Type ‘iisreset /stop’. This will stop IIS. (Make sure Visual Studio is not open while keying in this command)
4)Now type
‘aspnet_regiis -i’. Wait for the installation to complete.5)Now type
‘aspnet_regiis -c’.6)Finally type
‘iisreset /start’. This will start the IIS.7)If you find any trouble in starting the IIS then make sure that the
‘IIS Admin’ and ‘World Wide Web Publishing’ services are running correctly in
‘services.msc’.8)Now open IIS. Type
‘inetmgr’ in Run.9)Expand
‘websites’. Right click ‘Default Web Site’ and select browse. You should be able to see the ‘iishelp’ page.
10)Now copy your website(which you developed
using Visual Studio) folder into the path C:\Inetpub\wwwroot
11)Now
right click the ‘websites’ folder in IIS and select ‘Refresh’. Now you should be able to see your website folder under
‘Default Web Site’.
12)Now we need to add the ‘virtual directory’.
To add a new ‘virtual directory’ right click on 'Default Web Site' and select
'New', followed by 'Virtual Directory', from the drop down list.
13)Next you will see the
'Virtual Directory Creation Wizard' from the first screen click the
'next' button.14)You
will then be asked to type in an 'Alias' by which you will access the virtual directory from your web browser.
15)Next you will see a 'Browse...' button, click
on this to select the directory your web site pages are in on your computer(The website should be in the path
C:\Inetpub\wwwroot ), after which click on the
'next' button to continue.
16)On the final part of the wizard you will see a series of boxes,
if you are not worried about security then select them all, if you are and want to run ASP scripts then check the first two, followed by the
'next' button.
17)Once
the virtual directory is created you can view the web pages in the folder by typing 'http://localhost/aliasName' (where 'alias Name' is, place the alias you called the virtual directory) into the address bar of your web browser.
Can i do the same for framework 4.0 and the following will remain the same (i.e. aspmet_regiis -i and aspnet_regiis -c) or need to be changed for framework 4.0 .Kindly repli me as sson as possible
4)Now type
‘aspnet_regiis -i’. Wait for the installation to complete.5)Now type
‘aspnet_regiis -c’.
navidh_bubbl...
0 Points
1 Post
Configuring IIS 5.1 for ASP .NET Website
Apr 17, 2009 03:39 AM|LINK
6) If the page doesn’t open then there is a problem with the services.
7) To start the services, Run à Type ‘services.msc’. 8) In the services, right click ‘IIS Admin’ and select properties. In the properties, select ‘Automatic’ for the ‘Startup Type’. Click ‘apply’ and then ‘start’ (If ‘start’ is not highlighted don’t worry – it means the service has started)9) Again in the services, right click ‘World Wide Web Publishing’ and select properties. In the properties, select ‘Automatic’ for the ‘Startup Type’. Click ‘apply’ and then click ‘start’.
10)Now type 'http://localhost' in internet explorer and check for the ‘iishelp’ page. If it opens then the IIS is working fine. Configuring IIS for the website: 1) Open command prompt (Run à cmd)2) Change the directory to C:\WINDOWS\Microsoft.NET\Framework\v2.0.507273) Type ‘iisreset /stop’. This will stop IIS. (Make sure Visual Studio is not open while keying in this command)
4) Now type ‘aspnet_regiis -i’. Wait for the installation to complete.5) Now type ‘aspnet_regiis -c’.6) Finally type ‘iisreset /start’. This will start the IIS.7) If you find any trouble in starting the IIS then make sure that the ‘IIS Admin’ and ‘World Wide Web Publishing’ services are running correctly in ‘services.msc’.8) Now open IIS. Type ‘inetmgr’ in Run.9) Expand ‘websites’. Right click ‘Default Web Site’ and select browse. You should be able to see the ‘iishelp’ page.10)Now copy your website(which you developed using Visual Studio) folder into the path C:\Inetpub\wwwroot
11)Now right click the ‘websites’ folder in IIS and select ‘Refresh’. Now you should be able to see your website folder under ‘Default Web Site’.12)Now we need to add the ‘virtual directory’. To add a new ‘virtual directory’ right click on 'Default Web Site' and select 'New', followed by 'Virtual Directory', from the drop down list.
13)Next you will see the 'Virtual Directory Creation Wizard' from the first screen click the 'next' button. 14)You will then be asked to type in an 'Alias' by which you will access the virtual directory from your web browser.15)Next you will see a 'Browse...' button, click on this to select the directory your web site pages are in on your computer(The website should be in the path C:\Inetpub\wwwroot ), after which click on the 'next' button to continue.
16)On the final part of the wizard you will see a series of boxes, if you are not worried about security then select them all, if you are and want to run ASP scripts then check the first two, followed by the 'next' button.
17)Once the virtual directory is created you can view the web pages in the folder by typing 'http://localhost/aliasName' (where 'alias Name' is, place the alias you called the virtual directory) into the address bar of your web browser.issam1975
Member
37 Points
129 Posts
Re: Configuring IIS 5.1 for ASP .NET Website
Apr 27, 2009 03:47 PM|LINK
Great !!!
work like a charm
thanks alot [:)]
thunderqul
Member
2 Points
1 Post
Re: Configuring IIS 5.1 for ASP .NET Website
Jan 25, 2010 01:21 PM|LINK
this just works on my own computer nicely. but what if i wanted the public to view the webpages? what settings i need to do?
naveengss
Member
14 Points
33 Posts
Re: Configuring IIS 5.1 for ASP .NET Website
Jul 28, 2010 07:06 AM|LINK
thats great answer.
vijayantkaty...
Member
6 Points
3 Posts
Re: Configuring IIS 5.1 for ASP .NET Website
Oct 24, 2010 12:55 PM|LINK
Thanks ..4 such a useful post..
madiha rehma...
Member
51 Points
224 Posts
Re: Configuring IIS 5.1 for ASP .NET Website
Jun 28, 2012 12:35 PM|LINK
I tryed the steps and its a success.
Can i do the same for framework 4.0 and the following will remain the same (i.e. aspmet_regiis -i and aspnet_regiis -c) or need to be changed for framework 4.0 .Kindly repli me as sson as possible
4) Now type ‘aspnet_regiis -i’. Wait for the installation to complete.5) Now type ‘aspnet_regiis -c’.
nickyrolly
Member
2 Points
1 Post
Re: Configuring IIS 5.1 for ASP .NET Website
Jul 06, 2012 08:03 AM|LINK
Great.. i can open my Login page
but when login I Can't Open Connection MyApp to Database
how to open connection database at IIS 5.1??
Tq
dearteja
Member
8 Points
6 Posts
Re: Configuring IIS 5.1 for ASP .NET Website
Aug 22, 2012 10:40 AM|LINK
Dear Navidh_bubbly,
Your solution worked gr8. I heartly appreciate your post and help.
Have a good day and keep it on.
Regards, Teja
Abu Dhabi