473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP returning 404

Hi all,

I am using a windows 2000 server with IISLockdown and ISAPI_Rewrite
installed on it. I have 2 websites A & B. ASP pages on A are working
properly, but when placed one B they return 404 error. All other pages
such as txt, html, asp.net work fine on B. Both websites have the same
configuration, and use the same ISAPI filters.

A sample code that is not working is, file name test.asp:
<%@ LANGUAGE="VBSCRIPT" %>
<% response.redirect("URL")%>

Do you know what needs to be done to fix that?

Thanks,
Mohammed

Oct 26 '06 #1
5 2131
Have you tried

Response.Redirect "fileThatActuallyExists.asp"

Or do you really have a file named URL?

Ray at home

"Mohammed Hamama" <mo*************@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Hi all,

I am using a windows 2000 server with IISLockdown and ISAPI_Rewrite
installed on it. I have 2 websites A & B. ASP pages on A are working
properly, but when placed one B they return 404 error. All other pages
such as txt, html, asp.net work fine on B. Both websites have the same
configuration, and use the same ISAPI filters.

A sample code that is not working is, file name test.asp:
<%@ LANGUAGE="VBSCRIPT" %>
<% response.redirect("URL")%>

Do you know what needs to be done to fix that?

Thanks,
Mohammed

Oct 26 '06 #2

"Mohammed Hamama" <mo*************@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Hi all,

I am using a windows 2000 server with IISLockdown and ISAPI_Rewrite
installed on it. I have 2 websites A & B. ASP pages on A are working
properly, but when placed one B they return 404 error. All other pages
such as txt, html, asp.net work fine on B. Both websites have the same
configuration, and use the same ISAPI filters.

A sample code that is not working is, file name test.asp:
<%@ LANGUAGE="VBSCRIPT" %>
<% response.redirect("URL")%>

Do you know what needs to be done to fix that?
What is the format of the URL? Can you give us an example?


Oct 27 '06 #3

Victor wrote:
"Mohammed Hamama" <mo*************@gmail.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
Hi all,

I am using a windows 2000 server with IISLockdown and ISAPI_Rewrite
installed on it. I have 2 websites A & B. ASP pages on A are working
properly, but when placed one B they return 404 error. All other pages
such as txt, html, asp.net work fine on B. Both websites have the same
configuration, and use the same ISAPI filters.

A sample code that is not working is, file name test.asp:
<%@ LANGUAGE="VBSCRIPT" %>
<% response.redirect("URL")%>

Do you know what needs to be done to fix that?

What is the format of the URL? Can you give us an example?
My URL is "http://www.cnn.com"

Oct 27 '06 #4
The URL can stand for any URL. For example you can have it
http://www.cnn.com and it will still return the 404 page instead.

Oct 28 '06 #5
Mohammed Hamama wrote on 28 okt 2006 in
microsoft.public.inetserver.asp.general:
The URL can stand for any URL. For example you can have it
http://www.cnn.com and it will still return the 404 page instead.
[please always quote relevant part on usenet, this is not email]

Mohammed, I seem te remember you were asking about:

<%
Response.redirect "http://www.cnn.com"
%>
Re: ASP returning 404
It seems to me ASP does not "return" anything in this sense,
it is the browser being redirected to some web page, isn't it?

ASP just sends a header entry [and a small piece of HTML for noncompliant
browsers] in a 302-Object-moved page stream sent to the requesting client
browser, advising the browser to redirect to an outside URL.

Did you inspect the header?

Use <http://www.rexswain.com/httpview.html[or many others]

========================================

It should show something like this:

Receiving Header:
HTTP/1.1·302·Object·moved(CR)(LF)
Connection:·close(CR)(LF)
Date:·Sat,·28·Oct·2006·07:37:00·GMT(CR)(LF)
Server:·Microsoft-IIS/6.0(CR)(LF)
MicrosoftOfficeWebServer:·5.0_Pub(CR)(LF)
X-Powered-By:·ASP.NET(CR)(LF)
Location:·http://www.cnn.com(CR)(LF)
Content-Length:·139(CR)(LF)
Content-Type:·text/html(CR)(LF)
Expires:·Sat,·28·Oct·2006·05:57:00·GMT(CR)(LF)
Set-Cookie:·ASPSESSIONIDXXXXXXXXX=CFINMBIBKIJXXXXXX;·p ath=/(CR)(LF)
Cache-control:·private(CR)(LF)
(CR)(LF)

End of Header (Length = 377)
• Elapsed time so far: 1 seconds
• Waiting for additional response until connection closes...

Total bytes received = 516
Elapsed time so far: 1 seconds
Content (Length = 139):
<head><title>Object·moved</title></head>(LF)
<body><h1>Object·Moved</h1>This·object·may·be·found·<a·
HREF="http://www.cnn.com">here</a>.</body>(LF)

Done

==========================================

So what is different in your case?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: mjm | last post by:
Folks, Stroustrup indicates that returning by value can be faster than returning by reference but gives no details as to the size of the returned object up to which this holds. My question is...
8
by: Derek | last post by:
Some authors advocate returning const objects: const Point operator+(const Point&, const Point&); ^^^^^ Returning a const object prevents some bad code from compiling: Point a, b, c; (a +...
10
by: Fraser Ross | last post by:
I need to know the syntax for writing a reference of an array. I haven't seen it done often. I have a class with a member array and I want a member function to return an reference to it. ...
41
by: Materialised | last post by:
I am writing a simple function to initialise 3 variables to pesudo random numbers. I have a function which is as follows int randomise( int x, int y, intz) { srand((unsigned)time(NULL)); x...
7
by: wonderboy | last post by:
Hey guys, I have a simple question. Suppose we have the following functions:- //-----My code starts here char* f1(char* s) { char* temp="Hi"; return temp;
1
by: Randy | last post by:
Hello, I have a web service in which I'm doing a query to an Access database and returning the resulting XML data when I do the return from the service... public string AOS_Data(string sql) {...
3
by: Faustino Dina | last post by:
Hi, The following code is from an article published in Informit.com at http://www.informit.com/guides/content.asp?g=dotnet&seqNum=142. The problem is the author says it is not a good idea to...
17
by: I.M. !Knuth | last post by:
Hi. I'm more-or-less a C newbie. I thought I had pointers under control until I started goofing around with this: ...
6
by: EvilOldGit | last post by:
const Thing &operator++(int) { Thing temp = *this; operator++(); return temp; } Is this code robust ? I get a compiler warning about returning a reference to a a local, which I guess is...
23
by: pauldepstein | last post by:
Below is posted from a link for Stanford students in computer science. QUOTE BEGINS HERE Because of the risk of misuse, some experts recommend never returning a reference from a function or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.