PRB: ASP 3.0 Functions Do Not Appear in Visual InterDev IntelliSense (261101)



The information in this article applies to:

  • Microsoft Active Server Pages
  • Microsoft Visual InterDev 6.0

This article was previously published under Q261101

SYMPTOMS

When you work with Active Server Pages (ASP) in Visual InterDev 6.0, the source editor only lists the ASP 2.0 functions when it displays IntelliSense for the ASP intrinsic objects (such as server, application, session, request, and response). The ASP 3.0 functions still work at runtime. However, ASP 3.0 requires Microsoft Internet Information Services (IIS) 5.0 or later, running on Windows 2000.

CAUSE

Visual InterDev installs and uses an ASP 2.0 type library for IntelliSense because Visual InterDev may not be running on a computer with IIS installed. Because Visual InterDev should not offer programming options that may not exist on the target Web server, Visual InterDev does not display methods from the ASP 3.0 type library. You can still use these methods; they just do not appear in the IntelliSense drop-down list.

RESOLUTION

To resolve this problem, it is recommended that you manually enter the ASP 3.0-specific methods in Visual InterDev.

In addition, you can manually compile and modify a new type library for InterDev to use.

WARNING: Modifying program files incorrectly can cause serious problems. This modification has not been fully tested by Microsoft and is not supported. Do so at your own risk.

Before you compile your own type library, you must have the OLE View and Midl.exe tools installed on your computer. These tools are included with the Visual Studio tools if you are using the full Visual Studio suite. You can also download these tools with the Platform Software Development Kit (SDK) from the following Microsoft Web site: To compile your own type library to replace the Visual InterDev ASP type library, perform the following steps:
  1. Back up the Asp.tlb file that is located in the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder.
  2. If Visual InterDev is open, close it.
  3. On the Start menu, point to Programs, point to Visual Studio 6.0, point to Visual Studio 6.0 Tools, and then click OLE View.
  4. On the File menu, click View TypeLib, and then browse to the folder where the Asp.dll file is located.

    NOTE: If you don't have IIS 5.0 installed locally, you must copy Asp.dll from the WinNT\System32\Inetsrv folder on the Web server.
  5. In the ITypeLib Viewer, on the File menu, click Save as, and then save the file as Asp.idl on your hard disk.
  6. In Notepad, open Asp.idl. Change line 7 from "version(3.0)," to "version(2.0)," and save the changes.
  7. At a command prompt, browse to the folder where Asp.idl is located, and then type the following command to compile the new type library:

    midl asp.idl

    This stores the new type library in the same folder as Asp.idl under the name Asp.tlb.
  8. Rename the old Asp.tlb as Asp.tlbold in the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder.
  9. Copy the new Asp.tlb to the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder.
  10. Open Visual InterDev, and IntelliSense for the ASP 3.0 functions is displayed as you type.

Modification Type:MajorLast Reviewed:10/23/2003
Keywords:kbprb KB261101