"The Page cannot found" HTTP 404

  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

Hi,
Here is what is happening. I am running W2k Server running IIS. I have created a webpage that uses 3 total frames. The top frame and bottom frame are html files and they show up just fine. The middle frame however calls up an ASP file, and it is in this frame that I get the error in the title of this post.

I know the links are right and the file is there but for some reason it won't show up. I know the ASP is correct, and a link that I have on the page that opens another ASP file works.

Do you guys have any suggestions on what settings I could check?

Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

You should be getting an error message in the asp frame.

Copy the error message here
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Also, what URL are you using to access the page? Is it a local file you are pulling up?
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

I sent you a PM with the URL. Let me know if you don't get it.

Thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I got it, but please repost it here as well, so others can learn too.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Your problem should be easily solved by cutting your frameset code and pasting it within the body tags where it should be. The way you currently have it your frameset code is between the closed head tag and the opening body tag. That is going to screw up a multitude of browsers and is probably why you are experiencing the problem. This assumes that your relative link for the asp file is correct.

You also have duplicate frameset tags. Remove one set (the "empty" ones at top and bottom).

Your source is as follows:

Code: [ Select ]
<html>

<head>
<script>
<!--

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>

</head>



<frameset>
<frameset rows="38%,45%,*" frameborder="1" bordercolor="#F0F0E2">
<frame name="menu" scrolling="NO" noresize frameborder="no" marginwidth="0" marginheight="0" src="top.htm">
<frame name="tree" scrolling="yes" noresize frameborder="no" marginwidth="0" marginheight="0" src="/browser/browser.asp">
<frame name="files" noresize frameborder="no" marginwidth="0" marginheight="0" src="signin.htm">
</frameset>

</frameset>

<body>

</body>

</html>
  1. <html>
  2. <head>
  3. <script>
  4. <!--
  5. //enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
  6. var limit="0:30"
  7. if (document.images){
  8. var parselimit=limit.split(":")
  9. parselimit=parselimit[0]*60+parselimit[1]*1
  10. }
  11. function beginrefresh(){
  12. if (!document.images)
  13. return
  14. if (parselimit==1)
  15. window.location.reload()
  16. else{
  17. parselimit-=1
  18. curmin=Math.floor(parselimit/60)
  19. cursec=parselimit%60
  20. if (curmin!=0)
  21. curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
  22. else
  23. curtime=cursec+" seconds left until page refresh!"
  24. window.status=curtime
  25. setTimeout("beginrefresh()",1000)
  26. }
  27. }
  28. window.onload=beginrefresh
  29. //-->
  30. </script>
  31. </head>
  32. <frameset>
  33. <frameset rows="38%,45%,*" frameborder="1" bordercolor="#F0F0E2">
  34. <frame name="menu" scrolling="NO" noresize frameborder="no" marginwidth="0" marginheight="0" src="top.htm">
  35. <frame name="tree" scrolling="yes" noresize frameborder="no" marginwidth="0" marginheight="0" src="/browser/browser.asp">
  36. <frame name="files" noresize frameborder="no" marginwidth="0" marginheight="0" src="signin.htm">
  37. </frameset>
  38. </frameset>
  39. <body>
  40. </body>
  41. </html>


See the problem?
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

I do see the problem now. This page was originally done by a previous co-worker and I was trying to go through and fix it up to work right.
Thanks for spotting that out, after looking at this sites ASP code and other things for hours it can sometimes become a blur, if you know what I mean. :)

Here is that URL for anybody else that wants to check it out:

http://mail.crashrescue.com/files/default.htm
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

Ok,
I put the frameset code in the body and took out the extra </frameset>, and when I refresh, the whole page is just blank. I know it is working because the page refresh starts at the bottom. Here is what my code looks like now:

<html>

<head>
<script>
<!--

//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:30"

if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}

window.onload=beginrefresh
//-->
</script>

</head>

<body>

<frameset>
<frameset rows="38%,45%,*" frameborder="1" bordercolor="#F0F0E2">
<frame name="menu" scrolling="NO" noresize frameborder="no" marginwidth="0" marginheight="0" src="top.htm">
<frame name="tree" scrolling="yes" noresize frameborder="no" marginwidth="0" marginheight="0" src="/browser/browser.asp">
<frame name="files" noresize frameborder="no" marginwidth="0" marginheight="0" src="signin.htm">
</frameset>

</body>

</html>
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

By the way, I changed it back to what it was temporarily, so the company could use the upload if needed.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well, your /browser/browser.asp file isn't there. Even without the frames. Make sure the file is where you say it should be. The way your code is it should be here:

http://mail.crashrescue.com/files/browser/browser.asp

It's not.

Second, I don't understand why you have a refresh code on the main page of a frameset. You do realize that every thirty seconds that's going to refresh the whole frameset and as a result set whatever page the viewer is looking at in the tree frame back to the original browser.asp file.

Not sure what you are trying to do with the page, but that would drive me nuts.
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

Here is screenshots so you guys can see the file structure. The first is the /files/ folder as you can see the default.htm in the pic.

http://mail.crashrescue.com/files/files.jpg

This is the contents of the browser folder (the browser folder from the above). As you can see the browser.asp file is in there.

http://mail.crashrescue.com/files/browser.jpg
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

the refresh would drive me nuts too, but like I said my co-worker did it and I am being told that is what they want.

I know that the browser.asp file is there in that structure. Could it be a security setting for the site in Internet Service Manager?

Here is the path to default.htm on the server:

C:\Inetpub\wwwroot\files\default.htm

Here is the path to browser.asp:

C:\Inetpub\wwwroot\files\browser\browser.asp
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I saw the browser folder in the first picture. The permissions are too tight on the second one. It's asking for a password. Double check your permissions on the browser.asp file and/or the browser directory and make sure it's allowed to read and execute scripts.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Could be. Make sure ASP is turned on in IIS. And check your script execute permission on your asp directories.
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

Ok,
I reset the permissions for the browser folder, now I get this instead of the other error:

Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

I was getting this before on the other ASP files I had on this site and all I did to correct it iwas set the security to LOW, but it already is for the browser file and folder, any suggestions?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm guessing you're browsing to the file in wwwroot in your browser. That will give you that error. Try it this way instead:

http://localhost/files/browser/browser.asp

or

http://computername/files/browser/browser.asp

(use the second method if you are viewing the server from a different computer on the network)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Never mind. Looks like your error is here:

Error Type:
Microsoft VBScript runtime (0x800A004C)
Path not found
/files/browser/browser.asp, line 107

Check line 107 of the script and see what it's supposed to be doing.
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

This is what the eventlog says:

The server failed to load application '/LM/W3SVC/1/Root/browser'. The error was 'The server process could not be started because the configured identity is incorrect. Check the username and password.

and the one under it in the list:

DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon .\IWAM_SERVER02 in order to run the server:
{3D14228D-FBE1-11D0-995D-00C04FD919C1}

I have the anonymous user checked, and it isn't even using IWAM_SERVER02, as that name doesn't even exist anymore. it is using IUSR_Server03 instead now. The other ASP on the site is working...
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Well if the other scripts are working, that's a good sign. It also narrows the problem down to the asp script itself. Take a look at what's going on around line 107 that's causing the runtime error.
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

Here is the code, this is obviously some free ASP code that my previous co-worker is using for a web file browser, so sorry you have to sift through the beginning of it:

[code]<%@LANGUAGE=VBSCRIPT%>
<!--#include file="ssi/library.asp"-->
<%
' Web File Browser 1.1
' Author: Peter Brunone
' Release Date: September 19, 2000
' Contact: peterbrunone@aspalliance.com

'*********** The following are all the variables you need to set for your system. **************************

' This variable should contain the name of the highest folder you want the users to access. If they
' try to go above this folder, the app will simply return to the default directory (this name).
strCeilingFolder = "uploads"

' This section allows for development and production boxes with slightly different directory structures. If they are the same,
' they must still be entered here.
strDevBox = "server02" ' The machine name of the development box
strDevPath = "/uploads/" ' The virtual directory (under the web root) of the development box (a.k.a. the "ceiling")
' Example: strDevPath = "/mydates/today/"
strLivePath = "/uploads/" ' The virtual directory of the production (live) box
' Example: strLivePath = "/appointments/today/"

' These variables allow you to hide the directory structure from prying eyes, and at the same time make the interface neater by
' removing the "deep" part of the path structure and displaying a more user-friendly directory name.
' strRootString = "\ftp\uploads" ' The part of the physical path you'd like to hide
strRootString = "\ftproot\ftp\uploads" ' The part of the physical path you'd like to hide
' Example: strRootString = "C:\Inetpub\wwwroot\ppc"
strBrowseString = "\Files\" ' The expression with which you'd like to replace it
' Example: strBrowseString = "\Users"

' Here you can specify prefixes for hidden files. Simply add all extensions of file types that you wish to hide, delimited with a semicolon (;).
' The hide type can be specified as Inclusion (hide all types in strFileFilter) or Exclusion (hide all except types in strFileFilter).
strFileFilter = "exe;asp"
strHideType = "inclusion"
' Example: strFileFilter = "asp;aspx;html;xls"
' Example: strHideType = "Inclusion"

' Directories can now be filtered out as well, based on a leading character.
' The default is an underscore (_), which effectively takes care of FrontPage folders.
strDirFilter = "_"

' The Delete switch turns the Delete File functionality on (Y) or off (N); it is off by default.
strDelete = "N"

'*********** The rest is functional code; don't change it unless you want to change the way it works. ***********

Set fso = Server.CreateObject("Scripting.FileSystemObject")

If strServer = strDevBox Then
RootPath = Server.Mappath(strDevPath)
Else
RootPath = Server.Mappath(strLivePath)
End If
BrowsePath = RootPath

If (Request.Querystring("folder") <> "" And InStr(Request.Querystring("folder"),strCeilingFolder) > 0 And InStr(Request.QueryString("folder"),"..") <= 0) Then

RootPath = Request.Querystring("folder")
BackPath = BackDir(RootPath)
Set Dir = fso.GetFolder(RootPath)
ParentDir = Dir.ParentFolder
BrowsePath = RootPath

If Request.QueryString("delete") <> "" Then
DelDoc = Request.QueryString("docPath")
If fso.FileExists(DelDoc) Then
Set DelDoc = fso.GetFile(Request.QueryString("docPath"))
DelDoc.Delete True
End If
End If
End If

BrowsePath = Replace(RootPath,strRootString,strBrowseString)
%>
<HTML>
<HEAD>
<TITLE>browser.asp</TITLE>
<!--#include file="ssi/header.jsinc"-->
<!--#include file="ssi/style.css"-->
</HEAD>

<BODY background="../../back.gif" onLoad="window.focus()">
<%
'Response.Write Request.ServerVariables("HTTP_USER_AGENT") & "<BR><BR>" & vbCRLF ' Debugging

Response.Write "<TABLE WIDTH=""100%"" BORDER=0>" & vbCRLF

'Response.Write "<TR><TD COLSPAN=3>Current Directory: " & BrowsePath & "       <BR><BR></TD></TR>"

If BackPath <> RootPath Then
Response.Write "<TR><TD ALIGN=""LEFT"" VALIGN=""TOP""> <A HREF=""javascript:backUp();"">" &_
"<IMG SRC=""images/parentdir.gif"" BORDER=0 ALIGN=""TOP""> Parent Directory</A></TD>" & vbCRLF
Else
Response.Write "<TR><TD VALIGN=""TOP"">   </TD>" & vbCRLF
End If

If UCase(strDelete) = "Y" Then
' Use this line to include the Delete function
Response.Write "<TD ALIGN=""CENTER"" VALIGN=""TOP""><A HREF=""javascript:deleteSwitch('y')"">" &_
"<IMG SRC=""images/deldown.gif"" BORDER=0 ALIGN=""TOP"" NAME=""deletepic""> Delete File</A></TD>" &_
"<TD> & <BR><BR></TD></TR>" & vbCRLF
Else
' Use this line to exclude the Delete function
Response.Write "<TD> & <BR><BR></TD></TR>" & vbCRLF
End If

Set topfolder = fso.GetFolder(RootPath)

Response.Write "<TR><TD ALIGN=""LEFT"">       <B>Name</B></TD><TD>   </TD>" & vbCRLF &_
"</TD><TD ALIGN=""RIGHT""><B>Size</B></TD><TD ALIGN=""RIGHT""><B>Modified</B>"

' Here the folder names in the current directory are read and formatted into a hyperlink list.
For Each Folder in topfolder.SubFolders

FolderLink = NumberTrim(BaseDir(Folder))
If HideFolder(FolderLink) <> "Y" Then
' Response.Write FolderLink & "; Hide = " & HideFolder(FolderLink) & "<BR>" ' Debugging
If InStr(browser,"MSIE") Then
Folder = Replace(Folder,"\","\\")
End If
Folder = Server.URLEncode(Folder)
FolderLink = "<IMG SRC=""images/folder.gif"" BORDER=0 ALIGN=""TOP""> " & FolderLink
FolderLink = "<A HREF=""javascript:linkPage('" & Folder & "')"">" & FolderLink & "</A>"
ParentFolder = topfolder.ParentFolder
Response.Write "<TR><TD COLSPAN=4>   " & FolderLink & "</TD></TR>" & vbCRLF
End If
Next

' This block prepares the RootPath for the Delete function if needed.
If InStr(browser,"MSIE") Then
RootDirPath = Replace(RootPath,"\","\\")
RootDirPath = Server.URLEncode(RootDirPath)
Else
RootDirPath = Server.URLEncode(RootPath)
End If

' Here the filenames in the current directory are read and formatted into a hyperlink list.
For Each File In topfolder.Files
FileLink = BaseDir(File)
If HideFile(FileLink) <> "Y" Then
Size = File.Size
Size = SizeFormat(Size)
Modified = File.DateLastModified
If InStr(browser,"MSIE") Then
File = Replace(File,"\","\\")
End If
FileLinkImg = "<IMG SRC=""images/file.gif"" BORDER=0 ALIGN=""TOP""> " & FileLink
File = Server.URLEncode(File)
FileLink = "<A HREF=""javascript:openDocument('" & RootDirPath & "','" & File & "','" & FileLink & "')"">" & FileLinkImg & "</A>"
Response.Write "<TR><TD NOWRAP>   " & FileLink & "</TD><TD>   </TD>" & vbCRLF &_
"<TD ALIGN=""RIGHT"" NOWRAP>" & Size & "</TD><TD ALIGN=""RIGHT"" NOWRAP>" & Modified & "</TD></TR>" & vbCRLF
End If
Next

Response.Write "</TABLE>" & vbCRLF

%>
<FORM NAME="mainForm">
<INPUT TYPE="HIDDEN" NAME="rootPath" VALUE="<%=Server.URLEncode(RootPath)%>">
<INPUT TYPE="HIDDEN" NAME="backPath" VALUE="<%=Server.URLEncode(BackPath)%>">
<INPUT TYPE="HIDDEN" NAME="deleteIndicator" VALUE="no">
</FORM>
</BODY>
</HTML>
<%
Set browser = nothing


%>
[/code]


The code I bolded and Italicisized in red is line 107. Do you see anything with this?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Could you please edit the post and enable BB code so that the entire code displays correctly? Thanks.

Well, I think that is what's causing the problem, but don't know how to tell you to fix it. I'm just a little better than a beginner with ASP, and I'm not certain I understand exactly what it's doing there.

My apologies, but I've taken you about as far as I can with it. It's going to take someone with a bit more knowledge of ASP and VB to tell you what to do with it. Sorry.
  • fade_to_black
  • Novice
  • Novice
  • fade_to_black
  • Posts: 31
  • Loc: Dallas, TX

Post 3+ Months Ago

I didn't disable BB code, just HTML becuase it was trying to show some pictures and giving the nice red X.

I understand about the help with ASP. It sounds like I am about the level you are with ASP. I am just starting to learn the heavier stuff. Thanks again for all of your help, hopefully someone will chime in with some things to try. 8)

Also, I am an Apache guy, so dealing with IIS has been a learning experience as well...

Post Information

  • Total Posts in this topic: 22 posts
  • Users browsing this forum: No registered users and 118 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.