IIS - i want to open a website in local iis - Asked By koteswara rao arvapalli on 15-Sep-11 05:16 AM

Actually i am using OS windows7 Professional.
vs2008
  i am developing one application in my local system. and add that application under LOCAL IIS
with url
 
http://localhost/eFresh  its will work

my requirement is i want to open a website under local iis
means open vs2008-->file-->local IIS any application is not found
but vs2008-->file-->ftp system  application was found.
i want to open my application in local iis?
Reena Jain replied to koteswara rao arvapalli on 15-Sep-11 05:38 AM
HI,

When you create the Web site, Visual Web Developer performs all of the tasks that are required to make the Web site function as an IIS application. Visual Web Developer creates the folder or folders for your Web site under the Web root for IIS (for example, under \inetpub\wwwroot). After creating folders, Visual Web Developer creates the files for the Web site template that you selected.

When you create or open a local IIS Web site, Visual Web Developer creates a project to manage the files. The project stores a sm

By default, when you run a local IIS Web site to test it, Visual Web Developer launches a browser and runs the Web site using the server name localhost. For example, if you have created the Web site ExampleSite, when you test it in Visual Web Developer, the browser will request the test page from this URL:

IIS resolves the application name, whether it points to a folder that is under the IIS root or to another location, and serves pages from that folder.
smr replied to koteswara rao arvapalli on 15-Sep-11 05:46 AM
Hi

Opening the website.
Configuration home directory in IISThe website files are to be stored in the directory we setup as home directory in IIS configuration as explained above. To open the local site we have to use

 http://localhost/ or http://127.0.0.1/

in web browser to open the site. If our file name in the website is mysite.htm and is stored inside wwwroot and the complete path is like this c:\Inetpub\wwwroot\mysite.htm

 then to open this file we have to type http://127.0.0.1/mysite.htm or http://localhost/mysite.htm . By default if no file name is specified ( like http://127.0.0.1/ ) then the file name index.htm or default.htm will open. This setting of which file to open by default can be managed from IIS admin window.



refer
http://www.plus2net.com/asp-tutorial/iis-localsite.php
dipa ahuja replied to koteswara rao arvapalli on 15-Sep-11 06:58 AM
You can run your project by hosting in IIS

Step 1 : Build - > Publish Web Site

Step 2 : Publish it in the IIS server's folder : C:\inetpub\wwwroot

Step 3: Open IIS 

Step 4:  Expand the Root Node of the IIS in the left panel. In the Sites node you will get you published site

Step 5 : Right click on the your site and Choose Convert to Application:



Step 6: Now it will be converted to application  Now Right click on it and choose Browse :



Done!