ASP.NET - problema con webconfig

 
Vista:

problema con webconfig

Publicado por jesus (17 intervenciones) el 21/09/2006 09:27:53
Tengo un problema con mi webconfig cuando subo mi web a un servidor. En mi servidor local todo funciona correcto, pero cuando lo subo al servidor de produccion me da el siguiente error:

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.

¿Qué puedo hacer para solucionarlo?
Gracias de antemano

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

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:problema con webconfig

Publicado por thessen (89 intervenciones) el 25/09/2006 08:56:40
Pues... te lo dice le mismo error. Se está produciendo un error en la página y, para ver la descripción del error, debes dejar el web.config como indica :

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

Esto desactivará la gestión personalizada de errores y te mostrará la descripción del error en el navegador. De todas maneras, tal y como tienes configurado el web.config, si ejecutas la aplicación en el explorador del servidor debería mostrarte el error.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar