Ir para conteúdo

POWERED BY:

Arquivado

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

diegodidi

Erro com <customErrors mode="Off"/>

Recommended Posts

Caros,

 

como resolvo o problema abaixo?

 

Obrigado

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
	<system.web>
		<customErrors mode="Off"/>
	</system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
	<system.web>
		<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
	</system.web>
</configuration>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Boa Noite,

 

Pelo que entendi, você não subiu para o servidor seu arquivo

web.config

 

Caso tenha subido, verifique se nele existe a definição de customErrors, se não tiver, insira manualmente conforme o erro ensina:

 

<configuration>

<system.web>

<customErrors mode="Off"/>

</system.web>

</configuration>

 

PS: Por favor, contribuam com minha pesquisa: http://robertoosantos.brinkster.net/monografia/pesquisa.aspx

 

Abrass,

Compartilhar este post


Link para o post
Compartilhar em outros sites

Subi sim....e tem a tag também...

 

veja o arquivo...

<?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>
	<appSettings>
	 <add key="tipodata" value="1" />
	 <add key="usuarioBD1" value="sa" />
	 <add key="senhaBD1" value="" />
	 <add key="usuarioBD" value="htecbd" />
	 <add key="senhaBD" value="123456" />
	 <add key="CrystalImageCleaner-AutoStart" value="true" />
	 <add key="CrystalImageCleaner-Sleep" value="60000" />
	 <add key="CrystalImageCleaner-Age" value="120000" />
 </appSettings>
	<connectionStrings>
	<add name="infopadConnectionString1" connectionString="Data Source=sqlserver.iwi.com.br;Initial Catalog=BD;User ID=htecbd;password=123456" providerName="System.Data.SqlClient"/>
	<add name="infopadConnectionString11" connectionString="Data Source=Henrique;Initial Catalog=SAGRes;User ID=sa" providerName="System.Data.SqlClient"/>
		</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.

			Visual Basic options:
			Set strict="true" to disallow all data type conversions 
			where data loss can occur. 
			Set explicit="true" to force declaration of all variables.
		-->
		<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="pt-BR"/>
		<compilation debug="true">
			<assemblies>
				<add assembly="Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<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"/>
				<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
				<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
		<pages>
			<namespaces>
				<clear/>
				<add namespace="System"/>
				<add namespace="System.Collections"/>
				<add namespace="System.Collections.Specialized"/>
				<add namespace="System.Configuration"/>
				<add namespace="System.Text"/>
				<add namespace="System.Text.RegularExpressions"/>
				<add namespace="System.Web"/>
				<add namespace="System.Web.Caching"/>
				<add namespace="System.Web.SessionState"/>
				<add namespace="System.Web.Security"/>
				<add namespace="System.Web.Profile"/>
				<add namespace="System.Web.UI"/>
				<add namespace="System.Web.UI.WebControls"/>
				<add namespace="System.Web.UI.WebControls.WebParts"/>
				<add namespace="System.Web.UI.HtmlControls"/>
			</namespaces>
		</pages>
		<!--
			The <authentication> section enables configuration 
			of the security authentication mode used by 
			ASP.NET to identify an incoming user. 
		-->
		<!--
			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.

	-->

<system.web>
<customErrors mode="Off"/> 
</system.web>

	
		<authentication mode="Forms">
			<forms name="LinhaCodigo" loginUrl="Login.aspx" protection="All" timeout="30" path="/">
			</forms>
		</authentication>
		<authorization>
			<deny users="?"/>
			<allow users="*"/>
		</authorization>
	
	<httpHandlers><add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers></system.web>
</configuration>

 

Boa Noite,

 

Pelo que entendi, você não subiu para o servidor seu arquivo

web.config

 

Caso tenha subido, verifique se nele existe a definição de customErrors, se não tiver, insira manualmente conforme o erro ensina:

 

<configuration>

<system.web>

<customErrors mode="Off"/>

</system.web>

</configuration>

 

PS: Por favor, contribuam com minha pesquisa: http://robertoosantos.brinkster.net/monografia/pesquisa.aspx

 

Abrass,

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tem como mandar o link da aplicação só para ver o erro no navegador?

 

Estou levemente desconfiado que este problema seja no site que hospeda sua página.

 

Tente entrar em contato com o suporte, muitas vezes eles solucionam problemas assim.

 

Abrass,

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.