Article ID: 216569
Article Last Modified on 4/22/2001
APPLIES TO
- Microsoft Visual InterDev 6.0 Standard Edition
This article was previously published under Q216569
SYMPTOMS
When previewing a page using a Recordset that refers to a DE Command in Microsoft Access, the following error may occur:
This error occurs if there is a problem with the DBQ path in the DataEnvironment.asa. This can happen if the Visual InterDev project was developed remotely from the Web server, and the Web project was later copied or deployed to the Web server.
CAUSE
When the data connection is updated or changed, those changes are not reflected in the Dataenvironment.asa.
RESOLUTION
Delete the old data connection from the project explorer and add a new data command using a system DSN on the Web server the project was deployed to.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a project on the first Web server (server A).
- Create a system DSN for an Access.mdb on the server. Name that DSN TestDE A.
- Create a data connection using TestDE.
- Drag a table from the data view into the data environment (creating a data command).
- Create an Active Server Pages (ASP) page.
- Add a recordset DTC to that page. Have the recordset use the DE Command created above.
- Add a Grid DTC to the page. Connect it to the recordset.
- Save the ASP page.
- Copy the project to another Web server (server B).
- Copy the same Access.mdb to server B.
- Create a system DSN named TestDE2 to that same Access.mdb.
- Open the Visual InterDev project. Right-click the old data connection. Select TestDE2 and use that data connection for the recordset DTC.
- Save and Preview the ASP page.
Keywords: kbprb kbctrl KB216569