Microsoft KB Archive/261101

= PRB: ASP 3.0 Functions Do Not Appear in Visual InterDev IntelliSense =

Article ID: 261101

Article Last Modified on 8/27/2007

-

APPLIES TO


 * Microsoft Active Server Pages 4.0
 * Microsoft Visual InterDev 6.0 Standard Edition

-



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:

http://support.microsoft.com/default.aspx?pr=psdk

To compile your own type library to replace the Visual InterDev ASP type library, perform the following steps:  Back up the Asp.tlb file that is located in the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder. If Visual InterDev is open, close it. 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. 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. In the ITypeLib Viewer, on the File menu, click Save as, and then save the file as Asp.idl on your hard disk. In Notepad, open Asp.idl. Change line 7 from &quot;version(3.0),&quot; to &quot;version(2.0),&quot; and save the changes.</li> 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.</li> Rename the old Asp.tlb as Asp.tlbold in the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder.</li> Copy the new Asp.tlb to the Program Files\Microsoft Visual Studio\Common\IDE\IDE98 folder.</li> Open Visual InterDev, and IntelliSense for the ASP 3.0 functions is displayed as you type.</li></ol>

Additional query words: statement completion

Keywords: kbprb KB261101

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.