Your component's functionality will be exposed in ASP through a script contained in a file with the .asp extension. When you group ASP script files into applications they share access to the built-in Application object. Another important aspect of applications is that you can isolate them from each other by running them in a separate memory space from IIS. If you choose to do this, you should review the Application Isolation Issues.
The way you define applications has changed in IIS 4.0. In previous versions, you defined an application by creating a virtual directory. In IIS 4.0 you can use the Microsoft Management Console to define an application starting point. The application boundary will extend down the virtual directory structure until it reaches the starting point of another application. The following table illustrates these two approaches to defining applications.
IIS 3.0 Application Structure | IIS 4.0 Application Structure |
---|---|
Virtual directory = /Myapp | Virtual directory = /Myapps/Toplevel |
Physical directory = C:\Myapps | Physical directory = C:\Myapps |
Files: C:\Myapps\Global.asa, C:\Myapps\Default.asp | Virtual directory = /Myapps/Nextlevel |
Physical directory = \\Remote1\remoteasps | |
Files : C:\Myapps\Global.asa, \\Remote1\remoteasps\default.asp |
Notice that in IIS 4.0 you can create multiple levels of virtual directories, which allow your applications to span multiple physical locations.
In addition to using the Management Console to define applications, you can use ASP scripts to perform these tasks by accessing the IIS Admin Objects.