O'Reilly

YASD's
Book Support
Site

Main Page

Chapter 2 - Readme

Chapter Errata Pages

The examples in this chapter include the Visual Basic project files, as well as the compiled DLLs which you can register and use on your own Web test site.

The Admin ASP components are all created as separate classes in one Visual Basic project, "theObject.vbp". Each example is created as a separate object, such as "myObject", "myObject1", and numbered in order as they appear in the book.

Note that several of the examples must be installed in the IISADMIN subdirectory to work, and that you must have administrative authority to run the examples. You can locate IISADMIN by opening the IIS Console, right-clicking on the IISADMIN site, and pulling in the physical location from the Properties page.

Many of the examples in Chapter 2 make modifications to the IIS Admin properties for a virtual web directory called "book", not "test" as discussed in the book. Also note that these property changes will persist, and you will need to "re-store" the settings by reversing whatever changes are made. You can create a virtual subdirectory just for the examples in this chapter, and then delete it after finishing. This way the examples won't impact on other example subdirectories.

Example to Chapter Mapping
Example 2-1, Simple objectComponent is Simple.dll, test page is first.asp
Example 2-3, Accessing the Admin objectComponent is theObject.dll, test page is second.asp
Example 2-5, Accessing the Admin object - AspCodePageComponent is theObject.dll, test page is third.asp
Example 2-6, Accessing the Admin object - Put methodComponent is theObject.dll, test page is fourth.asp
Example 2-7, Simple out of process componentComponent is Project1.exe, test page is sixth.asp - see Example 2-8 first
Example 2-8, Setting out of process permissions with AdminComponent is theObject.dll, test page is fifth.asp - see Example 2-8 first
Example 2-10, Admin AspScriptErrorMessage propComponent is theObject.dll, test page is seventh.asp
Example 2-11, Admin AspScriptFileCacheSize Component is theObject.dll, test page is eighth.asp

For more information