Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ola amigos,
estou com um problemas em algumas paginas e não sei como resolver ... é seguinte tenho uma pagina que exibe as noticias cadastradas no banco e ao abrir a pagina aparece o erro:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
Como procerder para n aparecer isso ?
obrigdo
xanburzum,
desabiltei a opção e ainda contiua monstrando a mesma mensagem ....
abs
poste o code para eu analisar
poste o code para eu analisar
<!--#include file="config2.asp"-->
<%
'***********************************************************************
' Sistema de Notícias desenvolvido pela TemisNet
' Contatos: Temístocles Sota - ICQ 104458476
' http://www.temisnet.com.br
'***********************************************************************
%>
<%
Response.AddHeader "Content-Type", "text/html; charset=iso-8859-1"
Response.AddHeader "Pragma", "no-cache"
response.Charset="iso-8859-1"
%>
<% Response.Charset="iso-8859-1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="pt-br">
<title> Fotos </title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<style> font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
}</style></head>
<% id = request.querystring("id")
sqlstmt = "SELECT * FROM noticiais where id =" & id & " ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sqlstmt, Dados, 3, 3
TotalRecs = rs.recordcount
date1 = rs("data")
id = rs("ID")
name1 = rs("titulo")
p1= rs("materia")
description = p1 %>
<body leftmargin="0" topmargin="0">
<table width="449" height="190" border="0" cellpadding="0" cellspacing="0" style="border-width:0; ">
<tr>
<td width="340" align="left" style="border-style:none; border-width:medium; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif" bordercolor="#6E9F4D" height="19" valign="top" colspan="2">
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" color="#2580CD">
<span style="font-size: 22pt; font-weight: 700"> <%=name1%></span></font></td>
</tr>
<tr>
<td width="340" align="left" style="border-style:none; border-width:medium; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif" bordercolor="#6E9F4D" height="44" valign="bottom" colspan="2">
<p style="margin-top: 0; margin-bottom: 0">
<article class="col-1">
<font face="Arial" style="font-size: 8pt; font-weight: 700" color="#2580CD">
<br>
</font></article>
<article class="col-1"><font face="Arial" style="font-size: 8pt; font-weight: 700" color="#2580CD"><br>
</font></article></td>
</tr>
<tr>
<td width="236" align="left" style="border-style:none; border-width:medium; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif" bordercolor="#6E9F4D" height="146" valign="top">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0" align="left">
<font face="Arial" color="#162c16" style="font-size: 8pt" size="2">
<img src="imagens/<%=rs("foto")%>" border="0" align="bottom" hspace="8" vspace="2" width="251" height="88"><br>
<br>
<br>
<br>
<%=description%></font></td>
<td width="143" align="left" style="border-style:none; border-width:medium; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif" bordercolor="#6E9F4D" height="146" valign="top">
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0"> </td>
</tr>
</tr>
<tr>
<td width="340" align="left" style="border-style:none; border-width:medium; font-size:9px; font-family:Verdana, Arial, Helvetica, sans-serif" bordercolor="#6E9F4D" height="146" valign="top" colspan="2">
</td>
</tr>
</table>
<p>
</table>
<h2> </h2>
</body>
</html><%
' Endereço do Banco de Dados
'Desabilitado ## Dados = "driver=MySQL;server=temis;uid=root;pwd=;database=noticias" '## MySQL
'Desabilitado ## Dados = "DBQ=D:\temisnet\noticias\noticias.mdb;Driver={Microsoft Access Driver (*.mdb)};"
Dados ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& server.mappath("noticias.mdb")
%>
dê um response.write na sua string SQL para ver o que esta sendo passado
dê um response.write na sua string SQL para ver o que esta sendo passado
xanburzum,
Retornou o seguinte ..
SELECT * FROM noticiais where id = ORDER BY id DESCA
on error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
coloca assim:
<% id = request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
sqlstmt = "SELECT * FROM noticiais where id =" & id & " ORDER BY id DESC"
rs.Open sqlstmt, Dados, 3, 3
response.write(sqlstmt)response.end()
Alterei conforme me pediu e retornou somente o erro novamente..
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
Valeu
relamente tem certeza que esta Desabilitado a opção de exibir mensagens de Erros HTTP amigáveis no browser, verifique o ISS tb
relamente tem certeza que esta Desabilitado a opção de exibir mensagens de Erros HTTP amigáveis no browser, verifique o ISS tb
xanburzum
Agora funcionou era ISS ...
Obrigado
OK... beleza + 1 resolvido
Desabilite a opção de exibir mensagens de Erros HTTP amigáveis no browser. para ele exigir o humero real do erro.