Microsoft KB Archive/191961

{|
 * width="100%"|

PRB: DataConnections or Commands Unrecognized, Browser Flashes

 * }

Q191961

-

The information in this article applies to:


 * Microsoft Visual InterDev, version 6.0

-

SYMPTOMS
When trying to add an Active Server Pages (ASP) page to your current project by selecting New File from the File menu, clicking the New tab of the resulting dialog box, selecting the Visual InterDev folder in the left side, and selecting "ASP Page" in the right side of the dialog box, the following symptoms may show on that ASP page:


 * The fields of the recordset DRC or DataCommand, if added to the page, are shown in red with an exclamation point.
 * When viewing the page in the browser, the error "Object expected" may occur.
 * When trying to view the page in the browser, the browser will simply open, then close again quickly, just flashing up on the screen for an instant.
 * This "flash" also occurs when a connection is hand-coded using ADO against a data connection.

CAUSE
Adding a new file by using this menu option does not add the file to the project. Instead, it adds it to a subfolder called "Miscellaneous Files," which is not a part of the project and does not recognize Data Connections or Data Commands in the project.

RESOLUTION
Use the following steps to correctly add an ASP page to your current project:


 * 1) In the Project Explorer: right-click your current project (Bold type face, located directly under the Solution).
 * 2) From the shortcut menu, select Add and then click Active Server Page.

This adds an ASP page to your project and not to the Miscellaneous Files folder.

STATUS
This behavior is by design.

Steps to Reproduce Behavior

 * 1) From the File menu, click New File (a new window will pop up).
 * 2) Under the New tab, select the Visual InterDev folder in the left pane.
 * 3) Select ASP Page in the right pane.
 * 4) Click Open.

"-or-"
 * 1) From the File menu, click New File (a new window will pop up).
 * 2) Select HTML Page in the right pane.
 * 3) Click Open.
 * 4) From the File menu, select Save New HTML Page1.
 * 5) Change the extension to .asp by clicking Save xxx.asp AS from the File menu, and save the HTM page as an ASP.

Result: The new ASP or HTM page stored in a folder called Miscellaneous Files instead of in your current project.

The Miscellaneous Files directory was intended to be an area that you could add files to without affecting your team's project.

Additional query words:

Keywords : kbVisID600 kbWebServer kbGrpDSASP

Issue type : kbprb

Technology : kbVisIDsearch kbAudDeveloper kbVisID600