You'll need to set the SAXFileSamples virtual directory to be an application by doing the following:
- Go to Control Panel, Administrative Tools, Internet Services Manager.
- Click on the name of the machine and expand the tree on the Default Web Site until you see the SAXFileSamples virtual directory.
- Right click the SAXFileSamples virtual directory and choose Properties.
- Click the Create button. (If there is a button that says Remove but no button that says Create, then the virtual directory is already set as an application. If this is the case, the solution described here will not fix your problem.)
- Click OK to exit the dialog and then close IIS if desired.
- Try running the sample again.
These errors occur when running the samples because a global.asa file is located in the SAXFileSamples directory. In order for the global.asa file to work correctly with the application, that directory must be set as an application itself in IIS. The global.asa file in the samples contains code that assigns some Application object variables that are used througout the samples. |