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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't nav too quickly or get error

Status
Not open for further replies.

cbigham

Programmer
Nov 11, 2002
3
US
When navigating my website, I get the error listed below instead of the page I want. If I wait a few minutes and refresh, I get the page just fine - although, if the page includes a file that accesses the db, I usually have to wait, refresh, wait, refresh before the page comes up. In each case, (on each page) the error points to the line where I am connecting to the Access database (cn.Open "DSName").

After running IE update on the Win2K server, everything worked fine. Once I loaded all the security updates, the problem returned - and remains even after installing the same updates on the Win2K client.

Any ideas?

ERROR:
HTTP 500.100 - Internal Server Error - ASP error
Error Type:
Provider (0x80004005)
Unspecified error
/folder/page.asp, line 28

CODE:
<%@ Language = VBscript %>
<html><head>
<!-- #include file =&quot;style.inc&quot; -->
<title>Title Is Here</title>
<!-- #include file =&quot;menu.inc&quot; -->
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; style=&quot;font-family: Arial; font-size: 10&quot;>

<table width=&quot;100%&quot; bgcolor=&quot;#808080&quot;><tr style=&quot;color: #FFFFFF; background-color: #000080;&quot;>

<%
set cn = Server.CreateObject(&quot;ADODB.Connection&quot;)
cn.Open &quot;DSName&quot;
strSQL=&quot;SELECT * FROM table ORDER BY AnID&quot;
Set rs = cn.Execute(strSQL)

For i = 0 to rs.Fields.Count -1
Response.Write &quot;<td>&quot; & rs(i).Name & &quot;</td>&quot;
Next

response.write &quot;</tr>&quot; & VbCrLf

while not rs.EOF
response.write &quot;<tr>&quot;
For i = 0 to rs.Fields.Count -1
if rs(i).Name = &quot;AnID&quot; then
response.write &quot;<td><a href='anotherPage.asp?AnID=&quot; & rs(i).Value & &quot;'>&quot; & rs(i).Value & &quot;</a></td>&quot;
Else
response.write &quot;<td>&quot; & rs(i).value & &quot;</td>&quot;
End if
Next
response.write &quot;</tr>&quot; & VbCrLf
rs.movenext
wend

rs.close
set rs=nothing
cn.close
set cn=nothing
%>
</table></body></html>
 
Problem solved: In Internet Explorer Tools - Internet Options - Security - Trusted Sites - Sites: I unchecked the Require server verification... checkbox and added in the Add this website to the zone box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top