Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive the "HTTP Error 405" error message after you rename an HTML page by using the database search form


View products that this article applies to.

Symptoms

After you insert a database results region on an existing HTML page, save the page as an ASP file, and then preview the page in your Web browser, you may receive the following error message when you click Submit:
HTTP Error 405

405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists.

↑ Back to the top


Cause

When you add a submit query field to an existing file with a .htm extension, the form action is not updated to the file name with the asp extension.

The form points to the original file name. When you click Submit, the query is posted to the original file.

↑ Back to the top


Resolution

To resolve this problem, use one of the following methods.

Method 1: Add the Correct Form Field Action.

To add the correct form field action, follow these steps:
  1. Open the page that contains the database results form.
  2. Right-click the form, and click Form Properties.
  3. Click Options.
  4. In the Action box, type the name of the ASP page.

    For Example: Mypage.asp

Method 2: Delete the Existing Database Region and Recreate the Database Results Form.

To delete the existing database region and recreate the database results form, follow these steps:
  1. Open the page that contains the database results form.
  2. Click to select the database results region and the database search form.
  3. Press Delete to remove the database region and form from the page.
  4. On the Insert menu, point to Advanced, and click Results.
  5. Use the wizard to recreate your database query. When you are finished, save the page to the same asp file name.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


Keywords: KB229295, kbopenfile, kbasp, kbpending, kbprb, kbforms, kbdatabase

↑ Back to the top

Article Info
Article ID : 229295
Revision : 2
Created on : 9/27/2004
Published on : 9/27/2004
Exists online : False
Views : 266