
ITEC 4770 - Chapter 2 Building an N-Tier Application
IIS
1. IIS Virtual Directories (a.k.a. URL mapping)
a. Accessing documents in IIS
i. if there were a directory in your IIS directory named myApplication and there was a web page
in that directory named index.html it would be accessed as follows:
http://localhost/myApplication/index.html
b. Physical location of a directory in IIS
i. default directory is C:\Inetpub\wwwroot
ii. The location can be different if the directory is a virtual directory
c. Creating a virtual directory
i. Control Panel / Administrative Tools / Internet Information Services
ii. In IIS you will add a virtual directory (right-click the Default Web Site entry)
iii. Choose an alias
1. The alias will appear in IIS as a child to Default Web Site
2. The alias will also be used in the URL:
http://localhost/virtualDirectoryAlias
in order to access the files in your virtual directory.
iv. Browse to the new directory and select the directory containing your files
v. right-click / Properties / Directory Security / Edit . Uncheck ‘Anonymous access’ and check
‘Integrated Windows authentication’.
d. Advantages of virtual directories
i. Provide a simple URL to the end user
ii. Store content in different locations
iii. Easier to change location of and manage the served content
2. web.config file
a. XML (eXtensible Markup Language) file
i. uses XML formatting to group different settings together
ii. open and close tags for each setting
b. uses
i. application, ASP.NET, remoting settings
1. appSettings: configurations settings for the application: database connection string
2. system.web: configure ASP.NET applications and control how the applications behave
a. authentication
b. authorization
3. system.runtime.remoting
a. configuration for remote objects
3. Authentication
a. The process of confirming the identity of the user
b. Modes
i. Window (default)
1