IIS on windows 7 - how do you configure for visual studio

Posted on 2013-09-29
Medium Priority
Last Modified: 2013-10-01
I have been working with visual studio's dev iis server to test some code.  I just added the iis feature on my win 7 machine.  Can someone please give me detailed instructions on how to create the website (do I do this from iis or from visual studio properties), which app pool to use, and how to give that permissions to my file system.  I tried a few different things and ran into issues. Instead of trying to fix my mistakes, I want to start over from scratch.

Question by:jackjohnson44
LVL 18

Accepted Solution

Emmanuel Adebayo earned 2000 total points
ID: 39531306
You will need to first set your website application up in IIS, following the procedure

1.Open IIS Manager.
2.In the Connections pane, right-click the Sites node in the tree, and then click Add Web Site.
3.In the Add Web Site dialog box, type a friendly name for your Web site in the Web site name box.

4.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.

5.In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system to find the folder.

6.If the physical path that you entered in step 5 is to a remote share, click Connect as to specify credentials that have permission to access the path. If you do not use specific credentials, select the Application user (pass-through authentication) option in the Connect As dialog box.

7.Select the protocol for the Web site from the Type list.

8.The default value in the IP address box is All Unassigned. If you must specify a static IP address for the Web site, type the IP address in the IP address box.

9.Type a port number in the Port text box, usually you will want to use port 80

10.Optionally, type a host header name for the Web site in the Host Header box.

11.If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site immediately check box.

12.Click OK.

To test that your website is working, open the browser and enter either http:\\localhost or http:\\IP address of your website

You should see IIS 7 displayed

You can now deploy your code from Visual studio to the folder that you created for your website.

After deployment to the folder, you might need to stop and restart the application pool and browse to the site.

Author Comment

ID: 39535355
Thanks.  My issue is that when I go to visual studio, I don't get to pick the folder to deploy the code to.  I only have an option for a url which is defaulted to http://localhost/myprogram.web which myprogram.web is my project name.

I added an entry to myprogram in my hosts file and can get to an error page by going there.  I believe that is because there is no code.  I am not sure how to config vs.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question