473,412 Members | 3,763 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,412 software developers and data experts.

500 Error: Page Cannot be displayed

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:

<table cellspacing='0' cellpadding='1' border='0' class='menubold'
ID="Table1">
<tr>
<td><%
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 %>
<table border="0" cellpadding="2" cellspacing="0"><%
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)
%>
<tr>
<td nowrap>
<a href="../<%=path%>" target="new"><img
src="../images/file.gif" border="0"></a>
</td>
<td class='menuplain'><a href="../<%=path%>"
target="new"><%=filename%></a></td>
</tr><%
objRs.MoveNext

Loop %>
</table><%
End If
objRs.Close %>
</td>
</tr>
</table>

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%20...97IN-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!

Jan 17 '07 #1
2 2278
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:
<snip>
>
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.
Jan 17 '07 #2

read the 1st part
http://www.powerasp.com/content/hint...mmon_sense.asp
"cmt" <ch********@gmail.comwrote in message
news:11**********************@a75g2000cwd.googlegr oups.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:

<table cellspacing='0' cellpadding='1' border='0' class='menubold'
ID="Table1">
<tr>
<td><%
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 %>
<table border="0" cellpadding="2" cellspacing="0"><%
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)
%>
<tr>
<td nowrap>
<a href="../<%=path%>" target="new"><img
src="../images/file.gif" border="0"></a>
</td>
<td class='menuplain'><a href="../<%=path%>"
target="new"><%=filename%></a></td>
</tr><%
objRs.MoveNext

Loop %>
</table><%
End If
objRs.Close %>
</td>
</tr>
</table>

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%20...97IN-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!

Jan 17 '07 #3

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

Similar topics

2
by: Fie Fie Niles | last post by:
At our client site, they are using IIS 5.0. We created a virtual directory that points to a directory on the IIS server, and gave the execute permissions as "Scripts and Executables". When we...
10
by: | last post by:
I am accessing the same error-containing ASP page on an ISP server using w2k IE6 but with different effect. On the first computer I get several line of HTML outputed by ASP, shown correctly by...
2
by: Anton van der Merwe | last post by:
I'm getting the foolowing error when trying to view an asp page on a windows2003 server. On our previous IIS server (Windows 2000) the error was described in detail. Windows 2003 ------------...
6
by: Colin Colin | last post by:
I have an ASP program that is getting an error. When I get the error I get Page Cannot Be Displayed along with the line that causes the error and what the error is. What I am not getting is any...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
1
by: VB Programmer | last post by:
I am setting up a intranet webserver that will run my ASP.NET website. (Everything works fine locally.) When I try accessing an aspx page, via IE, it gives me the "Page cannot be displayed" error,...
1
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled...
25
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
6
by: TC | last post by:
Hey All, I'm receiving a weird error in IE now: "The XML page cannot be displayed" This is even with the simplest of pages that I previously could view. Any ideas?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.