Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search page not working HTTP Error 405 1

Status
Not open for further replies.

julesNDC

IS-IT--Management
Dec 2, 2005
81
US
I am trying to get a search page to our intranet to work by using FrontPage. My problem is when I do a query it gives me the error below.

*******************************************************

The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Please try the following:
• Contact the Web site administrator if you believe that this request should be allowed.
• Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
**********************************************************


I have to get this page going as it is affecting the productivity of about 400 users! And please bear with me as I am new to FrontPage and the web stuff.

Thanks
 
Possibilities

1) IIS has not been set up correctly. Create a virtual directory under the default website called testsite. Give it read facilites. Create a simple webpage called index.htm containing
Code:
<html><head><title>Simple Test</title></head>
<body>It works</body></html>
On the server, pop up IE and in the address bar type
Code:
[URL unfurl="true"]http://localhost/testsite/index.htm[/URL]
See if you get anything. If that works, assuming the server is called MVP try this
Code:
[URL unfurl="true"]http://MVP/testsite/index.htm[/URL]
If all that worked, then it isn't your IIS setup

2) Check where the virtual directories/websites are pointing to. Has your file been downloaded to the real directories?

3) Check the spelling of the filenames. Also make sure there aren't any spaces in the filename. Spaces play havoc with the system.

That is all I can think of. Let us know how you get on.
 
The testsite worked fine. Now I make sure there aren't any spaces in the filename.

I will let you know.

Thanks
 
Ok,it looks like most of the Word documents do have spaces in the name. The problem is that they are probably over 200 docs and before I get inot the task of renaming them all, could that really be where the problem is?
 
ok, found out that I did not have the index service running on the server and got that to work. Now I am gettigna different error (see below) and the browser shows this:

***************************************************

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------

Please try the following:

Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

******************************************************
 
Presumably search.htm is supposed to execute something and return emailproperusage.doc.

Is search.htm an asp script i.e does it have <% and %> in it? If it does, it has to have the extension .asp.

If there are spaces in the filename, they have to be substituted with %20.
 
You lost me.

where do I need to look for <% and %>?

I don"t know if search.htm is an ASP scrip. I created the page using FrontPage (if that anwers your question)
 
How are you picking up the search stuff? What does the code for receiving search=emailproperusage.doc look like?
 
What you basically need is for something to retrieve the document and return it back to you. First things first. Try something simple. We'll just get the server to echo the name of the document.

Create a file called retrieve.asp with the following content
Code:
<%@ language="vbscript" %>
<%
with Response
   .Write "<html><head><title>Document Retrieval</title></head>"
   .Write "<body>You are asking for " & Request("search")
   .Write "</body>
   .Write "</html>"
end with
%>
In your search form, go into html mode and look for the line that begins with <form
Change it so that it looks like
Code:
<form method="post" action="retrieve.asp">
Download both to the server and when you try to get something.doc, it should return with

You are asking for something.doc

See if that works first. I have to lookup how to return a document.
 
I could not not find the line that begins with "<form" in the search page created by FrontPage!!!
 
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>New Page 2</title>
</head>

<body>

<p>
<!--webbot bot="PurpleText" preview="Text Search - This page lets you search through the default text index that is created whenever web pages are saved or web links are recalculated. No customization is required." --><a name="top">
</a></p>
<hr>
<p>Use the form below to search for documents in this Web site containing
specific words or combinations of words. The text search engine will display a
weighted list of matching documents, with better matches shown first. Each list
item is a link to a matching document; if the document has a title it will be
shown, otherwise only the document's file name is displayed. A brief
<a href="#querylang">explanation</a> of the query language is available, along
with examples.</p>
<!--webbot bot="Search" s-link s-fields="TimeStamp,DocumentK," s-index="All" s-dsn="default" tag="BODY" s-text="Search for:" i-size="20" s-submit="Start Search" s-clear="Reset" --><hr>
<h2><a name="querylang">Query Language</a></h2>
<p>The text search engine allows queries to be formed from arbitrary Boolean
expressions containing the keywords AND, OR, and NOT, and grouped with
parentheses. For example:</p>
<blockquote>
<dl>
<dt><strong><tt>information retrieval</tt></strong></dt>
<dd>finds documents containing 'information' or 'retrieval'<br>
<br>
</dd>
<dt><strong><tt>information or retrieval</tt></strong></dt>
<dd>same as above<br>
<br>
</dd>
<dt><strong><tt>information and retrieval</tt></strong></dt>
<dd>finds documents containing both 'information' and 'retrieval'<br>
<br>
</dd>
<dt><strong><tt>information not retrieval</tt></strong></dt>
<dd>finds documents containing 'information' but not 'retrieval'<br>
<br>
</dd>
<dt><strong><tt>(information not retrieval) and WAIS</tt></strong></dt>
<dd>finds documents containing 'WAIS', plus 'information' but not
'retrieval'<br>
<br>
</dd>
<dt><strong><tt>web*</tt></strong></dt>
<dd>finds documents containing words starting with 'web'<br>
<br>
</dd>
</dl>
</blockquote>
<h5><a href="#top">Back to Top</a></h5>
<hr>
<h5>Author information goes here.<br>
Copyright © 2001 [OrganizationName]. All rights reserved.<br>
Revised: <!--webbot bot="TimeStamp" s-format="%m/%d/%y" s-type="EDITED" -->.</h5>

</body>

</html>
 
FYI, I am using FrontPage 2003. Don't know if it makes a difference or not.
 
The code is generated by FP. Look for the second line that starts with
Code:
<!--webbot
Remove it and in its place put
Code:
<form method="post" action="retrieve.asp">
<b>Search for:</b><input  type="text" size="20" name="search"><p>
<input type="submit" value="Start Search">
<input type="reset" value="Reset">
</p>
</form>
My original posting for retrieve.asp had a missing quote. Here is the corrected version
Code:
<%@ language="vbscript" %>
<%
with Response
   .Write "<html><head><title>Document Retrieval</title></head>"
   .Write "<body>You are asking for " & Request("search")
   .Write "</body>"
   .Write "</html>"
end with
%>
[/CODE]
 
I don't have FP2003: only FP2000. You can publish your original page as it stands but your server has to be frontpage enabled and you have to publish the site: not just copy the page you have created. FP extensions need all the stuff in all the directories it creates.

If you look, search.htm should be in one of them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top