spacer
Yehuda Shiran July 23, 2002
Creating IIS Web Server Virtual Directories
Tips: July 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

When you want to create a site under your IIS Web server, you need to create a virtual directory that points to a real directory on your hard drive. Let's create a virtual directory for the add Web service from Column 112. We put all files in d:\aspDemo, including the Web service definition, simpleCalc.asmx. Now you need to open the IIS control window. In Windows XP, click start -> Control Panel -> Performance and Maintenance -> Administrative Tools -> Internet Information Services. Expand the menu by clicking the + button, until you get the Default Web Sites entry:

Let's create a virtual directory now under Default Web Sites. Right-click the Default Web Sites entry, and pick New Virtual Directory. A wizard will guide you through two entries and a set of options. The first entry is the alias of this Web site. We chose Column113. Then it will ask you for the path of the directory where the content is. Browse to your directory and press Next. We chose d:\aspDemo. Leave the last page as is and click Finish. You will now see all your files from d:\aspDemo reflected in the right window of the IIS control panel. You can check now that indeed you can see the add Web service via http://localhost/Column113/simpleCalc.asmx (assuming you put simpleCalc.asmx in d:\aspDemo).

To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint