500 Error: Page Cannot be displayed
am 17.01.2007 14:09:20 von cmt
Greetings!
I have an asp page that writes out a URL that points to files on a
network drive.
It has been working fine up until a week ago. I haven't made any
changes to the server or code, so I can't figure out why the script
suddenly stopped working.
I have verified that the files do exist, and that the paths are
correct.
But now, whenever a user clicks on the link, they get a "page cannot be
displayed" error message.
Here is the code that writes out the network path:
ID="Table1">
<%
strQry = "SELECT * FROM INET.dbo.cases WHERE CFworkRequestID = '" &
WRid & "' ORDER BY CFpath "
Set objRs = Server.CreateObject("ADODB.RecordSet")
objRs.Open strQry, GetMSSQLConn(), 1
If Not objRs.EOF And Not objRs.BOF Then %>
<%
Do While Not objRs.EOF And Not objRs.BOF
path = objRs("CFpath").value
arrayPath = Split(path, "\")
If arrayPath(Ubound(arrayPath)) <> "\" Then
filename = arrayPath(Ubound(arrayPath))
Else
filename = arrayPath(Ubound(arrayPath) - 1)
End If
path = Replace(path, "\\LSI-DC\SURV", "")
path = Replace(path, "\\LSI-DC\surv", "")
path = Replace(path, "\\lsi-dc\surv", "")
path = Replace(path, "\", "/")
path = "v-drive/" & path
'path = Server.UrlEncode(path)
%>
src="../images/file.gif" border="0">
|
<%
objRs.MoveNext
Loop %>
<%
End If
objRs.Close %>
|
When clicked, the script opens up a new page. And here is what is in
the Address bar:
http://www.aaaa.com/v-drive//Open%20Surv.%20Files/Burr,%20Ma rk%20WE23538/8-29-06;%208%20Hours/0006697IN-FINAL.doc
Again, I have not made changes to the server or code in about a year.
It just suddenly stopped working. I've gone over permissions, share
security, etc...but I can find no clues.
Can anyone give me any hints or advice? This is driving me nuts.
Thanks!
Re: 500 Error: Page Cannot be displayed
am 17.01.2007 16:40:09 von reb01501
cmt wrote:
> Greetings!
>
> I have an asp page that writes out a URL that points to files on a
> network drive.
>
> It has been working fine up until a week ago. I haven't made any
> changes to the server or code, so I can't figure out why the script
> suddenly stopped working.
>
> I have verified that the files do exist, and that the paths are
> correct.
>
> But now, whenever a user clicks on the link, they get a "page cannot
> be displayed" error message.
>
> Here is the code that writes out the network path:
>
>
> Can anyone give me any hints or advice? This is driving me nuts.
>
First step: discover what the real error is:
http://www.aspfaq.com/show.asp?id=2109
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Re: 500 Error: Page Cannot be displayed
am 17.01.2007 16:52:52 von Kyle Peterson
read the 1st part
http://www.powerasp.com/content/hintstips/common_sense.asp
"cmt" wrote in message
news:1169039360.018450.302770@a75g2000cwd.googlegroups.com.. .
> Greetings!
>
> I have an asp page that writes out a URL that points to files on a
> network drive.
>
> It has been working fine up until a week ago. I haven't made any
> changes to the server or code, so I can't figure out why the script
> suddenly stopped working.
>
> I have verified that the files do exist, and that the paths are
> correct.
>
> But now, whenever a user clicks on the link, they get a "page cannot be
> displayed" error message.
>
> Here is the code that writes out the network path:
>
>
> ID="Table1">
>
> <%
> strQry = "SELECT * FROM INET.dbo.cases WHERE CFworkRequestID = '" &
> WRid & "' ORDER BY CFpath "
> Set objRs = Server.CreateObject("ADODB.RecordSet")
> objRs.Open strQry, GetMSSQLConn(), 1
> If Not objRs.EOF And Not objRs.BOF Then %>
> <%
> Do While Not objRs.EOF And Not objRs.BOF
> path = objRs("CFpath").value
> arrayPath = Split(path, "\")
> If arrayPath(Ubound(arrayPath)) <> "\" Then
> filename = arrayPath(Ubound(arrayPath))
> Else
> filename = arrayPath(Ubound(arrayPath) - 1)
> End If
> path = Replace(path, "\\LSI-DC\SURV", "")
> path = Replace(path, "\\LSI-DC\surv", "")
> path = Replace(path, "\\lsi-dc\surv", "")
> path = Replace(path, "\", "/")
> path = "v-drive/" & path
> 'path = Server.UrlEncode(path)
> %>
>
>
>
> src="../images/file.gif" border="0">
> |
>
> <%
> objRs.MoveNext
>
> Loop %>
> <%
> End If
> objRs.Close %>
> |
>
>
>
> When clicked, the script opens up a new page. And here is what is in
> the Address bar:
>
> http://www.aaaa.com/v-drive//Open%20Surv.%20Files/Burr,%20Ma rk%20WE23538/8-29-06;%208%20Hours/0006697IN-FINAL.doc
>
> Again, I have not made changes to the server or code in about a year.
>
> It just suddenly stopped working. I've gone over permissions, share
> security, etc...but I can find no clues.
>
> Can anyone give me any hints or advice? This is driving me nuts.
>
> Thanks!
>