How to create website in IIS?

Posted by Sangeetha Mani under ASP.NET on 11/6/2013 | Points: 10 | Views : 1281 | Status : [Member] | Replies : 2
How to create website in IIS?

Let i ask my doubt in following example for my
clearness.

1. First i created a project with single page as
registration page in VStuido 2012 with .net framework 4.0

2. now i need to host this webpage in iis

3. my doubts arised here
how to host my webpage in iis

1. first build my web page and right click on page and
select the publish , there select the mode type either ftp,filetype or someting
the give physical path

after i published my path in c:\webpage

First doubt is how to add this webpage in iis

second doubt how to create webapp in iis itself

third doubt what is the use of inetpub and wwwroot in c drive
when we use that and why?

i wil be very glad when i come to know answer for this doubt

sangeetha.m


Responses

Posted by: Bandi on: 11/6/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9b74f316-071b-4eab-b5d2-c3ad7feb46ca.mspx?mfr=true
http://www.codeproject.com/Articles/32210/Deployment-of-a-Website-on-IIS
http://blog.iweb.com/en/2011/01/how-to-setup-a-basic-website-in-iis-for-the-beginner/6508.html

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 11/6/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
First doubt is how to add this webpage in iis.

Answer:-
1. Open IIS Manager.
2. In the Connections pane, expand the Sites node.
3. Right-click the site for which you want to create an application, and click Add Application.
4. In the Alias text box, type a value for the application URL. This value is used to access the application in a URL.
5. Click Select if you want to select a different application pool than the one listed in the Application pool box. In the Select Application Pool dialog box, select an application pool from the Application pool list and then click OK.
6. In the Physical path text box, type the physical path of the application's folder i.e. c:\webpage, or click the browse button (...) to navigate the file system to find the folder.
7. Optionally, click Connect as to specify credentials that have permission to access the physical path. If you do not use specific credentials, select the Application user (pass-through authentication) option on the Connect As dialog box.
8. Optionally, click Test Settings to verify the settings that you specified for the application.
9. Click OK.


Second doubt how to create webapp in iis itself.

Answer:-
1. In IIS Manager, expand the local computer node (which might be indicated by your computer name), expand Web Sites, and then click Default Web Site.
2. On the Action menu, click New, and then click Virtual Directory.
3. In the Virtual Directory Creation Wizard, click Next.
4. In the Alias box, type the name that you want for your new application, and then click Next.
5. In the Path box, type the physical directory that you created to prepare for this walkthrough, C:\exampleWebApp, and then click Next.
Alternatively, you can click the Browse button to browse to your directory.
6. On the Access Permissions page, make sure that the Read and Run scripts check boxes are selected, and then click Next.
Security note: Read and Run are the only permissions that are required to run ASP and ASP.NET pages. It is recommended that you use the minimum necessary permissions to allow clients to view your Web site. For more information, see Securing Sites with Web Site Permissions in the IIS Operations Guide.
7. Click Finish.
Your new Web application is created and highlighted in IIS Manager.

Third doubt what is the use of inetpub and wwwroot in c drive when we use that and why?

http://stackoverflow.com/questions/7529913/should-i-put-my-asp-net-websites-in-the-wwwroot-folder
http://stackoverflow.com/questions/10350394/asp-net-publishing-a-web-site-to-iis
http://forums.iis.net/t/732607.aspx
https://blogs.iis.net/thomad/archive/2008/02/10/moving-the-iis7-inetpub-directory-to-a-different-drive.aspx
https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8c110149-8060-4dd7-9bdb-e262c21483dd.mspx?mfr=true

Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Sangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response