FP2000: Database Features Do Not Work on Disk-Based Web Published to MSPWS

ID: Q219170


The information in this article applies to:


SYMPTOMS

After you publish a disk-based web to a Web server, you may receive the following error message when you preview the page in the browser on pages that contain database results regions:

Database Results Error
The database connection named 'DatabaseName' is undefined.

This problem can occur if:
* The connection has been removed from the web
* the file 'global.asa' is missing or contains errors
* the root folder does not have Scripting permission enabled
* the web is not marked as a Application Root
where DatabaseName is the name of your database connection.


CAUSE

This behavior occurs when the web is not marked as an Application Root.

The web does not automatically get created as an Application Root. Active Server Pages (ASP) and database features will not function unless the web is part of an Application Root.


RESOLUTION

To resolve this issue, use one of the following methods:

Method 1: Verify the database connection

To verify the database connection, follow these steps:
  1. Open the Web on the server.
    1. On the File menu, click Open Web.


    2. In the Folder Name box, type the name of the web. (Example: http://localhost/myweb)


    3. Click Open.




  2. On the Tools menu, click Web Settings.


  3. Click the Database tab


  4. Select the database connection, and click Verify. Repeat this steps for each database in the list.


Method 2: Set the root folder to allow programs to be run.

To set the root folder to allow programs to be run, follow these steps:
  1. Open the Web on the Server.
    1. On the File menu, click Open Web.


    2. In the Folder Name box, type the name of the web. (Example: http://localhost/myweb)


    3. Click Open.




  2. On the View menu, click Folders.


  3. In the Folder list, right-click the top level folder and click Properties.


  4. Click to select the "Allow programs to be run" check box, and click OK.


  5. Note: On subfolders that contain ASP, you may need to right-click the folder and click to select the "Allow programs to be run" check box for ASP to function correctly.

    Webs hosted on Internet Information Server 4 with FrontPage 2000 extensions also need to have an application root created. Click the Directory's tab in the Internet Service Manager, and click Create.

Method 3: Create a new page using the database connection

To create a new page using the database connection, follow these steps:
  1. Open a new page in the Page view of FrontPage.


  2. On the Insert menu, point to Database, and click Results.


  3. In Step one of the Database Results Wizard, click to select the Use an Existing Database option, and select your database from the list.


  4. Click Next, and accept all defaults.


  5. When the wizard is finished, save the page to the web (on the server).


  6. Note: After the initial page has been saved, you may delete the file you created using this method.


MORE INFORMATION

If you are hosting your web on Internet Information Server 3.0 with FrontPage 2000 extensions, please see the following article in the Microsoft Knowledge Base:

Q215365: Server Error: The folder "/Cgi-bin" Is Marked Executable

Additional query words: front page


Keywords          : kbdta 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: July 1, 1999