Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Alexandre Bispo

Problemas com processamento de url

Recommended Posts

Galera, alguém consegue me explicar, porque este código abaixo funciona no meu server ISS 8:

<!DOCTYPE html>
<html
<head>
   <title>Testando asp</title>
</head>
<body>
   <%="hello word"%>
</body>
</html>

E este abaixo não funciona e aparece este erro: "An error occurred on the server when processing the URL. please contact the system administrator"

 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim pageTest

Set pageTest = Server.CreateObject("ADODB.Recordset")
pageTest.ActiveConnection = MM_pageTest_STRING
pageTest.Source = "SELECT *  FROM usuarios"
pageTest.Open()

%>
<!DOCTYPE html>
<html>
    <head>
        <title>Icatu Seguros - Números sorteados</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


        <style type="text/css">
/* Reset Styles */
html, body, div, span, applet, object, iframe, table, caption,
tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, tt, var,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
    vertical-align: baseline;
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    outline: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
:focus {
    outline: 0;
}

img{
    border: 0;
    text-decoration: none;
}

sub, sup { line-height: 0; } 


body {
    background: white;
    line-height: 1;
    color: black;
}
ol, ul {
    list-style: none;
}
table {
    border-collapse: separate;
    border-spacing: 0;
}
caption, th, td {
    font-weight: normal;
    text-align: left;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: "";
}
blockquote, q {
    quotes: "" "";
}


/* General Styles */

p{
    
    margin-bottom: 20px;
    
}

ul{
    
    margin-bottom: 20px;
    
}

h1{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #003e69;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline;
    
}

h2{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #003e69;
    letter-spacing: 0px;
    display: inline;
    
}

.Box{
    width: 100%;
    height: 100%;
    text-align: center;
}

#table_loteria{
    
    width: 487.5px;
    margin-bottom: 20px;
    
}

.Table_loteria_titulo{
    
    height: 39px;
    
}

.Table_loteria_linha1{
    
    height: 24.75px;

}

.Table_loteria_linha2{
    
    height: 24.75px;
    
}

.Table_loteria_td1{
    
    width: 50%;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    
}

.Table_loteria_td2{
    
    width: 50%;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    
}

/* Boxes Styles */

#conteudo{
    
    padding-top: 210px;

}

/* Text Styles */
.Texto{
    
    letter-spacing: 0px;
    line-height: 16.5px;
    text-align: left;
    
    width: 592.25px;
    padding-left: 22.5px;
    margin:auto;
    margin-top: 15px;
    
}

/* Fim de Reset Styles */
            #conteudo{
             
                background-color: #003e69;
            }
            /* Estilos de tabelas */
            .Table_loteria_titulo{
                
                background-color: #fdb817;
                
            }

            .Table_loteria_linha1{
                
                background-color: white;

            }

            .Table_loteria_linha2{
                
                background-color: #ffe7ba;
                
            }

            .Table_loteria_td1{
                
                border-right: 1px solid #fdb817; /* Cor da linha de separação das colunas */
                
            }
        </style>
    </head>
    <body>
        <div id="conteudo" class="Box">
           <div style="width: 561px; margin: auto; text-align: left;"><img src="titulo_ndasorte.png" alt="Número da sorte"/></div>
            <div class="Texto" style="padding-bottom: 105px;">
                <table id="table_loteria">
                    <tr class="Table_loteria_titulo">
                        <td style="vertical-align: middle; text-align: center;">
                            <h1>Data da Extração</h1>
                        </td>
                        <td style="vertical-align: middle; text-align: center;">
                            <h1>Nº Sorteado</h1>
                        </td>
                    </tr>
                    <tr class="Table_loteria_linha2">
                        <td class="Table_loteria_td1">
                            <h2><%=(pageTest.Fields.Item("data1").Value)%></h2>
                        </td>
                        <td class="Table_loteria_td2">
                            <h2><%=(pageTest.Fields.Item("numero1").Value)%></h2>
                        </td>
                    </tr>
                </table>

                <table id="table_loteria">
                    <tr class="Table_loteria_titulo">
                        <td colspan="2" style="vertical-align: middle; text-align: center;">
                            <h1>SORTEIOS ANTERIORES</h1>
                        </td>
                    </tr>
                    <tr class="Table_loteria_linha2">
                        <td class="Table_loteria_td1">
                            <h2>Data da Extração</h2>
                        </td>
                        <td class="Table_loteria_td2">
                            <h2>Nº Sorteado</h2>
                        </td>
                    </tr>
                    <tr class="Table_loteria_linha1">
                        <td class="Table_loteria_td1">
                            <h2><%=(pageTest.Fields.Item("data2").Value)%></h2>
                        </td>
                        <td class="Table_loteria_td2">
                            <h2><%=(pageTest.Fields.Item("numero2").Value)%></h2>
                        </td>
                    </tr>
                    <tr class="Table_loteria_linha1">
                        <td class="Table_loteria_td1">
                            <h2><%=(pageTest.Fields.Item("data3").Value)%></h2>
                        </td>
                        <td class="Table_loteria_td2">
                            <h2><%=(pageTest.Fields.Item("numero3").Value)%></h2>
                        </td>
                    </tr>
                    <tr class="Table_loteria_linha1">
                        <td class="Table_loteria_td1">
                            <h2><%=(pageTest.Fields.Item("data4").Value)%></h2>
                        </td>
                        <td class="Table_loteria_td2">
                            <h2><%=(pageTest.Fields.Item("numero4").Value)%></h2>
                        </td>
                    </tr>
                </table>
            </div>
            <br/>
        </div>
        <script type="text/javascript">

          var _gaq = _gaq || [];
          _gaq.push(['_setAccount', 'UA-7780654-14']);
          _gaq.push(['_trackPageview']);

          (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
          })();

        </script>
    </body>
</html> 
<%
pageTest.Close()
Set pageTest = Nothing
%>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

No seu IIS, vá em ASP e na lista de recursos ASP. Em compilação marque "true"a opção: Enviar erros ao navegador.

 

 

Depois de habilitado rode seu script onde vai mostrar a linha de erro.

 

 

Qualquer coisa posta ai.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Esta acusando este erro na linha 6 do código informado acima:

 

Arguments are of the wrong type, are out of acceptaple range, or are in conflict with one another

 

sabe dizer como posso corrigir?

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.