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 ANSWERSangeetha Mani, if this helps please login to Mark As Answer. | Alert Moderator