Ir para conteúdo

POWERED BY:

Arquivado

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

~Aspire'

Erro de Servidor no Aplicativo

Recommended Posts

Ola estava fazendo um sistema de busca e derrepente deu este erro\/ como posso corrigilo? vou deixar meu codigo abaixo para facilitar

 

 

Server Error in '/vestup02' Application.
Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: BC30084: 'For' must end with a matching 'Next'.

Source Error:


Line 128:
Line 129:'Loop to search for each search word entered by the user
Line 130:For intSQLLoopCounter = 0 To UBound(sarySearchWord)
Line 131:strSQL = strSQL & " OR Title LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Line 132:strSQL = strSQL & " OR Keywords LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'" 

 

 

 

 

Meu Codigo

 

 

<html>
<head>
<title>Dutty Search</title>

<script language="JavaScript">
.
function CheckForm () {
if (document.frmInterSaerch.search.value==""){
alert("Por favor insira uma palavra para realizar a busca");
document.frmInterSaerch.search.focus();
return false;
}
return true
}
// -->
</script>

</head>
<img src="header.png" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="1,0,38,23" href="default.htm" />
<area shape="rect" coords="66,0,152,15" href="http://explorerfly.com" target="_blank" />
</map>
<body text="#000000" link="#66CCFF" vlink="#66CCFF" alink="#FF0000">

<form method="get" name="frmInterSaerch" action="search.aspx" onSubmit="return CheckForm();">
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">

<td>   <a href="add_url_form.htm">Adicione seu site ao Dutty Search</a>      <a href="search.aspx?mode=new"> 
Novos Sites</a>         <a href="search.aspx?mode=random">Escolher URL aleatoriamente</a></td>
</table>
<table cellpadding="0" cellspacing="0" width="90%" align="center">
<tr> 
<td height="61" width="231" align="right" rowspan="3"><img src="logo2.png" 
       align="absmiddle" alt="Busca na web" style="height: 56px; width: 115px"> 
</td>
<td height="61" width="21" align="right" rowspan="3"> </td>
<td class="arial" height="29" width="634" valign="bottom"> Página de busca: 
</td>
</tr>
<tr> 
<td class="normal" height="2" width="634"> 
<input type="TEXT" name="search" maxlength="50" size="35" value="<% =Request.QueryString("search") %>">
<input type="submit" value="Busca Dutty" name="submit">
</td>
</tr>
<tr> 
<td class="normal" height="29" width="634" valign="top"> Procurar por: 
<input type="radio" name="mode" value="allwords" CHECKED>
Todas as palavras
<input type="radio" name="mode" value="anywords">
Qualquer uma das palavras </td>
</tr>
</table>
<%
'Dimension variables
Dim adoCon 'Database Connection Variable
Dim adoRec 'database Recordset Variable
Dim strAccessDB 'Holds the Access Database Name
Dim strSQL 'Database query sring
Dim intRecordPositionPageNum 'Holds the record position
Dim intRecordLoopCounter 'Loop counter for displaying the database records
Dim intTotalRecordsFound 'Holds the total number of records in the database
Dim intTotalNumPages 'holds the total number of pages in the database
Dim intLinkPageNum 'Holds the page number to be linked to
Dim strSearchKeywords 'Holds the keywords input by the user to be searched for
Dim strTitle 'Holds the URL Title
Dim strURL 'Holds the URL
Dim strDescription 'Holds the description of the URL
Dim sarySearchWord 'Holds the keywords for the URL
Dim intSQLLoopCounter 'Loop counter for the loop for the sql query
Dim intSearchWordLength 'Holds the length of the word to be searched
Dim blnSearchWordLenthOK 'Boolean set to false if the search word length is not OK
Dim intRecordDisplayFrom 'Holds the number of the search result that the page is displayed from
Dim intRecordDisplayTo 'Holds the number of the search result that the page is displayed to
Dim intRandomRecordNumber 'Holds a random number used to display a random URL

'Declare constants
' Change the following line to the number of entries you wish to have on each page and miniumum word length

Const intRecordsPerPage = 10 'Change this number to the amount of entries to be displayed on each page
Const intMinuiumSesrchWordLength = 2 'Change this to the minimum word length to be searched on

'Error handler
On error resume next

'If this is the first time the page is displayed then the page position is set to page 1
If Request.QueryString("PagePosition") = "" Then
intRecordPositionPageNum = 1

'Else the page has been displayed before so the page postion is set to the Record Position number
Else
intRecordPositionPageNum = CInt(Request.QueryString("PagePosition"))
End If

'Read in the search words to be searched
sarySearchWord = Split(Trim(Request.QueryString("search")), " ")

'Read in all the search words into one variable
strSearchKeywords = Trim(Request.QueryString("search"))

'Replace any less than or greater than signs with the HTML equivalent (stops people entering HTML tags)
strSearchKeywords = Replace(strSearchKeywords, "<", "<")
strSearchKeywords = Replace(strSearchKeywords, ">", ">")

'Initalise the word search length variable
blnSearchWordLenthOK = True

'Loop round to check that each word to be searched has more than the minimum word length to be searched
For intLoopCounter = 0 To UBound(sarySearchWord)

'Initialise the intSearchWordLength variable with the length of the word to be searched
intSearchWordLength = Len(sarySearchWord(intLoopCounter))

'If the word length to be searched is less than or equal to min word length then set the blnWordLegthOK to false
If intSearchWordLength <= intMinuiumSesrchWordLength Then 
blnSearchWordLenthOK = False 
End If
Next

'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT * FROM tblWebsites "

'If the user has selected to search any words then intalise the strSQL statement to search for any words in the database
If Request.QueryString("mode") = "anywords" Then

'Search for the first search word in the URL titles
strSQL = strSQL & "WHERE Title LIKE '%" & sarySearchWord(0) & "%'"

'Loop to search for each search word entered by the user
For intSQLLoopCounter = 0 To UBound(sarySearchWord)
strSQL = strSQL & " OR Title LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
strSQL = strSQL & " OR Keywords LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'" 
strSQL = strSQL & " OR Description LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Nex

End If

'If the user has selected to search for all words then intalise the strSQL statement to search for entries containing all the search words
If Request.QueryString("mode") = "allwords" Then

'Search for the first word in the URL titles
strSQL = strSQL & "WHERE Title LIKE '%" & sarySearchWord(0) & "%'

'Loop to search the URL titles for each word to be searched
For intSQLLoopCounter = 1 To UBound(sarySearchWord)
strSQL = strSQL & " AND Title LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Next

'OR if the search words are in the keywords 
strSQL = strSQL & " OR Keywords LIKE '%" & sarySearchWord(0) & "%'"

'Loop to search the URL keywords for each word to be searched
For intSQLLoopCounter = 1 To UBound(sarySearchWord)
strSQL = strSQL & " AND Keywords LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Next

'Or if the search words are in the title 
strSQL = strSQL & " OR Description LIKE '%" & sarySearchWord(0) & "%'"

'Loop to search the URL description for each word to be searched
For intSQLLoopCounter = 1 To UBound(sarySearchWord)
strSQL = strSQL & " AND Description LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Next

End If

'If the user has selected to see newly enetred URL's then order the search results by date decending
If Request.QueryString("mode") = "new" Then

'Order the search results by the date entered into the database decending
strSQL = strSQL & " ORDER By Date_Entered DESC"

'Else order the serch results by the number of click through hits decending 
Else
'Order the search results by the number of click through hits decending (most popular sites first)
strSQL = strSQL & " ORDER By Hits DESC"
End If

'Initialise the strAccessDB variable with the name of the Access Database
strAccessDB = "search_engine"

'Create a connection odject

Set adoRec = Server.CreateObject("ADODB.Recordset")

'Open connection to the database driver
strCon = "DRIVER={Microsoft Access Driver (*.mdb)};"

'Open Connection to database
strCon = strCon & "DBQ=" & server.mappath(strAccessDB)

'Query the database with the strSQL statement
adoRec.Open strSQL, strCon, 3

'Set the number of records to display on each page by the constant set at the top of the script
adoRec.PageSize = intRecordsPerPage

'Get the page number record poistion to display from
adoRec.AbsolutePage = intRecordPositionPageNum

'Count the number of records found
intTotalRecordsFound = CInt(adoRec.RecordCount)
'Declarando variáveis


'Definindo caminho do banco
caminho_banco = Server.MapPath("search_engine.mdb")


'Definindo string de conexão
strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & caminho_banco

'Criando objeto
Set adoCon = Server.CreateObject("ADODB.Connection")

adoCon.Mode = 3

'Count the number of pages the search results will be displayed on calculated by the PageSize attribute set above
intTotalNumPages = CInt(adoRec.PageCount)

'Calculate the the record number displayed from and to on the page showing
intRecordDisplayFrom = (intRecordPositionPageNum - 1) * intRecordsPerPage + 1
intRecordDisplayedTo = (intRecordPositionPageNum - 1) * intRecordsPerPage + intRecordsPerPage
If intRecordDisplayedTo > intTotalRecordsFound Then intRecordDisplayedTo = intTotalRecordsFound

'Display the HTML table with the results status of the search or what type of search it is
Response.Write vbCrLf & " <table width=""98%"" border=""0"" cellspacing=""1"" cellpadding=""1"" align=""center"" bgcolor=""#333399"">"
Response.Write vbCrLf & " <tr>"

'Display that the URL is randomly generated 
If Request.QueryString("mode") = "random" Then
Response.Write vbCrLf & " <td> Random URL.</td>"

'Display that we are showing a page of the latest URL's indexed
ElseIf Request.QueryString("mode") = "new" Then
Response.Write vbCrLf & " <td> The " & intRecordsPerPage & " latest URL's Indexed.</td>"

'Display that one of the words entered was to short
ElseIf blnSearchWordLenthOK = False Then
Response.Write vbCrLf & " <td> Searched the web for <b>" & strSearchKeywords & "</b>.    One of the words searched is to short.</td>"

'Display that there where no matching records found
ElseIf adoRec.EOF Then 
Response.Write vbCrLf & " <td> Searched the web for <b>" & strSearchKeywords & "</b>.    Sorry, no results found.</td>"

'Else Search went OK so display how many records found
Else 
Response.Write vbCrLf & " <td> Searched the web for <b>" & strSearchKeywords & "</b>.    Displaying Results " & intRecordDisplayFrom & " - " & intRecordDisplayedTo & " of " & intTotalRecordsFound & ".</td>" 
End If

'Close the HTML table with the search status
Response.Write vbCrLf & " </tr>"
Response.Write vbCrLf & " </table>"

'Display the various results

'HTML table to display the search results or an error if there are no results
Response.Write vbCrLf & " <br>" & vbCrLf 
Response.Write vbCrLf & " <table width=""95%"" border=""0"" cellspacing=""1"" cellpadding=""1"" align=""center"">"
Response.Write vbCrLf & " <tr>" 
Response.Write vbCrLf & " <td>"

'Display a random URL
If Request.QueryString("mode") = "random" Then

'Randomise system timer
Randomize Timer

'Get a random number between 0 and highest number of records in database
intRandomRecordNumber = Int(RND * intTotalRecordsFound)

'Move to the choosen random record in the database
adoRec.Move intRandomRecordNumber

'Read in the values form the database
intSiteIDNo = CInt(adoRec("SiteIDNo")) 
strTitle = adoRec("Title")
strURL = adoRec("URL") 
strDescription = adoRec("Description")
intSiteHits = CInt(adoRec("Hits"))

'Display the randon URL details 
Response.Write vbCrLf & " <a href=""get_url.asp?SiteID=" & intSiteIDNo & """ target=""_blank"">" & strTitle & "</a>"
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " " & strDescription
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " <font size=""1"" color=""#00CC99""><i>" & strURL & "  -  Hits " & intSiteHits & "</i></font>"
Response.Write vbCrLf & " <br><br>"

'Display error message if one of the words is to short
ElseIf blnSearchWordLenthOK = False And NOT Request.QueryString("mode") = "new" Then

'Write HTML displaying the error
Response.Write vbCrLf & " Your Search - <b>" & strSearchKeywords & "</b> - Contained a word with " & intMinuiumSesrchWordLength & " letters or less, this is to short to search."
Response.Write vbCrLf & " <br><br>"
Response.Write vbCrLf & " Suggestions:"
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " <ul><li>Try longer keywords.<li>Make sure all words are spelled correctly.<li>Try different keywords.<li>Try more general keywords.</ul>"

'If no search results found then show an error message
ElseIf adoRec.EOF Then

'Write HTML displaying the error
Response.Write vbCrLf & " Your Search - <b>" & strSearchKeywords & "</b> - did not match any documents."
Response.Write vbCrLf & " <br><br>"
Response.Write vbCrLf & " Suggestions:"
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " <ul><li>Make sure all words are spelled correctly.<li>Try different keywords.<li>Try more general keywords.<li>Try fewer keywords.</ul>"

Else
'For....Next Loop to display the results from the database
For intRecordLoopCounter = 1 to intRecordsPerPage

'If there are no records left to display then exit loop
If adoRec.EOF Then Exit For

'Read in the values form the database
intSiteIDNo = CInt(adoRec("SiteIDNo")) 
strTitle = adoRec("Title")
strURL = adoRec("URL") 
strDescription = adoRec("Description")
intSiteHits = CInt(adoRec("Hits"))

'Display the details of the URLs found 
Response.Write vbCrLf & " <a href=""get_url.asp?SiteID=" & intSiteIDNo & """ target=""_blank"">" & strTitle & "</a>"
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " " & strDescription
Response.Write vbCrLf & " <br>"
Response.Write vbCrLf & " <font size=""1"" color=""#00CC99""><i>" & strURL & "  -  Hits " & intSiteHits & "</i></font>"
Response.Write vbCrLf & " <br><br>"

'Move to the next record in the database
adoRec.MoveNext

'Loop back round 
Next
End If

'Close the HTML table displaying the results
Response.Write vbCrLf & " </td>"
Response.Write vbCrLf & " </tr>"
Response.Write vbCrLf & " </table>"

'Display an HTML table with links to the other search results if not showing latest 10, a random URL, or not under min word length
If NOT Request.QueryString("mode") = "new" And NOT Request.QueryString("mode") = "random" And blnSearchWordLenthOK = True Then

'Display an HTML table with links to the other search results
Response.Write vbCrLf & " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">"
Response.Write vbCrLf & " <tr>"
Response.Write vbCrLf & " <td>"
Response.Write vbCrLf & " <table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
Response.Write vbCrLf & " <tr>"
Response.Write vbCrLf & " <td width=""50%"" align=""center"">"

'If there are more pages to display then add a title to the other pages
If intRecordPositionPageNum > 1 or NOT adoRec.EOF Then
Response.Write vbCrLf & " Results Page:  "
End If

'If the page number is higher than page 1 then display a back link 
If intRecordPositionPageNum > 1 Then 
Response.Write vbCrLf & " <a href=""search.aspx?PagePosition=" & intRecordPositionPageNum - 1 & "&search=" & Replace(strSearchKeywords, " ", "+") & "&mode=" & Request.QueryString("mode") &""" target=""_self""><< Prev</a>  " 
End If

'If there are more pages to display then display links to all the search results pages
If intRecordPositionPageNum > 1 or NOT adoRec.EOF Then

'Loop to diplay a hyper-link to each page in the search results 
For intLinkPageNum = 1 to intTotalNumPages

'If the page to be linked to is the page displayed then don't make it a hyper-link
If intLinkPageNum = intRecordPositionPageNum Then
Response.Write vbCrLf & " " & intLinkPageNum
Else

Response.Write vbCrLf & "  <a href=""search.aspx?PagePosition=" & intLinkPageNum & "&search=" & Replace(strSearchKeywords, " ", "+") & "&mode=" & Request.QueryString("mode") & """ target=""_self"">" & intLinkPageNum & "</a>  " 
End If
Next
End If

'If it is Not the End of the search results than display a next link 
If NOT adoRec.EOF then 
Response.Write vbCrLf & "  <a href=""search.aspx?PagePosition=" & intRecordPositionPageNum + 1 & "&search=" & Replace(strSearchKeywords, " ", "+") & "&mode=" & Request.QueryString("mode") & """ target=""_self"">Next >></a>" 
End If

'Finsh HTML the table 
Response.Write vbCrLf & " </td>" 
Response.Write vbCrLf & " </tr>"
Response.Write vbCrLf & " </table>" 
Response.Write vbCrLf & " </td>"
Response.Write vbCrLf & " </tr>"
Response.Write vbCrLf & " </table>"
Response.Write vbCrLf & " <br>"

End If

'Close Server Objects 
Set adoCon = Nothing
Set adoCmd = Nothing
%>
</form>

<table width="98%" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF" align="center">
<tr> 
<td width="47%">  <a href="add_url_form.htm">Adicionar URL</a></td>
</tr>
</table>
</body>
</html>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Aqui:

'Loop to search for each search word entered by the user
For intSQLLoopCounter = 0 To UBound(sarySearchWord)
strSQL = strSQL & " OR Title LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
strSQL = strSQL & " OR Keywords LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'" 
strSQL = strSQL & " OR Description LIKE '%" & sarySearchWord(intSQLLoopCounter) & "%'"
Nex

 

Note que o Nex está errado, precisa ser Next

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ola, coloquei arrumei o next ai

deu esse erro

 

 

Descrição: Erro ao compilar um recurso necessário para atender esta solicitação. Examine os detalhes específicos do erro e modifique o código fonte apropriadamente.

 

Mensagem de Erro do Compilador: BC30037: Caractere inválido.

 

Erro de Origem:

 

 

Linha 125:

Linha 126:'Search for the first search word in the URL titles

Linha 127:strSQL = strSQL & "WHERE Title LIKE "%" & sarySearchWord(0) & "%" << o erro ta aqui

Linha 128:

Linha 129:'Loop to search for each search word entered by the user

Compartilhar este post


Link para o post
Compartilhar em outros sites

Verifique a ortografia. pode ser um nome de coluna Invalido 'sua_coluna'. A coluna a qual você se refere na Base de Dados não foi encontrada. e também veja se os tipos de dados estão corretos, dá um response.write na sua string SQL,para ver o que esta sendo passada

Compartilhar este post


Link para o post
Compartilhar em outros sites

muito obrigado era a ortografia mesmo...

 

agora eu to com outro erro em outro script

Erro \/

 

 

Server Error in '/vestup02' Application.
Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: There are multiple root elements. Line 11, position 3.

Source Error: 


Line 9:  -->
Line 10: <configuration/>
Line 11: 	<configSections>
Line 12: 		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Line 13: 			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

Source File: C:\MemberSites\MemberSites_AspSpider_Ws\vestup02\webroot\sd\web.config    Line: 11 

 

 

Meu Web.config \/

 

 

<?xml version="1.0"?>
<!-- 
   Note: As an alternative to hand editing this file you can use the 
   web admin tool to configure settings for your application. Use
   the Website->Asp.Net Configuration option in Visual Studio.
   A full list of settings and comments can be found in 
   machine.config.comments usually located in 
   \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration/>
<configSections>
	<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
		<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
			<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
			<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
				<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
				<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
				<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
			</sectionGroup>
		</sectionGroup>
	</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web/>
	<!-- 
           Set compilation debug="true" to insert debugging 
           symbols into the compiled page. Because this 
           affects performance, set this value to true only 
           during development.
       -->
	<compilation debug="true">
		<assemblies>
			<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
			<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
			<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
			<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
			<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
	</compilation>
	<!--
           The <authentication> section enables configuration 
           of the security authentication mode used by 
           ASP.NET to identify an incoming user. 
       -->
   <!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible modes are "Windows",
"Forms", "Passport" and "None"

"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to
its settings for the application. Anonymous access must be disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter their credentials, and then
you authenticate them in your application. A user credential token is stored in a cookie.
"Passport" Authentication is performed via a centralized authentication service provided
by Microsoft that offers a single logon and core profile services for member sites.
-->
   <authentication mode="Windows" />


   <!-- AUTHORIZATION
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
(unauthenticated) users.
-->
   <authorization>
     <allow users="*" />
     <!-- Allow all users -->

     <!-- <allow users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
<deny users="[comma separated list of users]"
roles="[comma separated list of roles]"/>
-->
   </authorization>
           The <customErrors> section enables configuration 
           of what to do if/when an unhandled error occurs 
           during the execution of a request. Specifically, 
           it enables developers to configure html error pages 
           to be displayed in place of a error stack trace.

       <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
           <error statusCode="403" redirect="NoAccess.htm" />
           <error statusCode="404" redirect="FileNotFound.htm" />
       </customErrors>
       -->
	<pages>
		<controls>
			<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
			<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		</controls>
	</pages>
	<httpHandlers>
		<remove verb="*" path="*.asmx"/>
		<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
	</httpHandlers>
	<httpModules>
		<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
	</httpModules>
<system.web/>
<system.codedom>
	<compilers>
		<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
			<providerOption name="CompilerVersion" value="v3.5"/>
			<providerOption name="WarnAsError" value="false"/>
		</compiler>
		<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
			<providerOption name="CompilerVersion" value="v3.5"/>
			<providerOption name="OptionInfer" value="true"/>
			<providerOption name="WarnAsError" value="false"/>
		</compiler>
	</compilers>
</system.codedom>
<!-- 
       The system.webServer section is required for running ASP.NET AJAX under Internet
       Information Services 7.0.  It is not necessary for previous version of IIS.
   -->
<system.webServer>
	<validation validateIntegratedModeConfiguration="false"/>
	<modules>
		<remove name="ScriptModule"/>
		<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
	</modules>
	<handlers>
		<remove name="WebServiceHandlerFactory-Integrated"/>
		<remove name="ScriptHandlerFactory"/>
		<remove name="ScriptHandlerFactoryAppServices"/>
		<remove name="ScriptResource"/>
		<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
		<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
	</handlers>
</system.webServer>
<runtime>
	<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
		<dependentAssembly>
			<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
			<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
		</dependentAssembly>
		<dependentAssembly>
			<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
			<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
		</dependentAssembly>
	</assemblyBinding>
</runtime>
<configuration/>

 

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.