KB23 - Why don't the .asp or .aspx sample scripts run?

Description

The ASP(.asp) or ASP.NET (.aspx) Sample Scripts do not run on your computer.

Solution

There can be many reasons for this: 
 
1) Internet Information Server (IIS) is not installed
 
2) Excel SpeedGen ASP is not Installed
 
Normally the setup program should do this for you, but if not registering is easy. You simply need to run regsvr32.exe on the XLSpeedGenASP.dll
 
However, if the old XLSpeedGenASP.dll is locked by IIS then you must restart IIS to be able to overwrite it.
 
3) The Virtual Directory "xlsam" does not exist
 
In order for the samples to run you must have a Virtual Directory called xlsam (xls for Excel SpeedGen v1.x) created in your Internet Services Manager.
 
If you do not know how to create a Virtual Directory then you can find the information in the IIS Help.
 
4) You do not have a "localhost"
 
To run the samples you must be able to call up scripts on your computer using:
 
http://localhost/virtual_dir_name/my_script.asp
 
If you cannot get localhost to work then you can still call the sample scripts by constructing the links manually but the Run links in the Samples html files won't work.
 
5) .NET Users
 
If you want to run .aspx scripts, ensure you have ASP.NEThttp://www.asp.net/ Installed.
 
6) NT 4 Users 
 
Ensure you have the latest MDAC Drivershttp://www.microsoft.com/data/ installed. (or at least v2.1)

Copyright © 1999-2006 Optimized Software. All Rights Reserved.
Microsoft® Excel is a registered trademark of Microsoft Corporation.