Foros del Web » Programando para Internet » ASPX (.net) »

Error en el servidor

Estas en el tema de Error en el servidor en el foro de ASPX (.net) en Foros del Web. Hola a todos, tengo un ploblemilla con unas paginas aspx, mi problema es que al probar o correr las paginas localmente funcionan correctamente y al ...
  #1 (permalink)  
Antiguo 27/11/2008, 12:28
 
Fecha de Ingreso: octubre-2008
Ubicación: Mexico
Mensajes: 38
Antigüedad: 15 años, 6 meses
Puntos: 1
Error en el servidor

Hola a todos, tengo un ploblemilla con unas paginas aspx, mi problema es que al probar o correr las paginas localmente funcionan correctamente y al momento de subirlas al servidor me mustra el siguiente error.

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>

ya he intentado configurar el web.config como se muestra en el mesaje de error
pero no me mustra que tipo de error es y me muestra lo mismo. ¿que puedo hacer para correjir el error o cual es el error mas comun en estos casos?.
De antemano muchas gracias
  #2 (permalink)  
Antiguo 28/11/2008, 03:18
 
Fecha de Ingreso: septiembre-2007
Mensajes: 34
Antigüedad: 16 años, 7 meses
Puntos: 4
Respuesta: Error en el servidor

Pon tu código en bloques try catch y escribe el error en el navegador. Te pongo un ejemplo:

Código:
Try
'Tu código aquí
Catch ex As Exception
Response.Write(ex.ToString)
EndTry 
al menos así tendrás una idea de qué puede estar pasando
  #3 (permalink)  
Antiguo 28/11/2008, 13:05
 
Fecha de Ingreso: octubre-2008
Ubicación: Mexico
Mensajes: 38
Antigüedad: 15 años, 6 meses
Puntos: 1
Respuesta: Error en el servidor

Muchas Gracias kwasir por contestar parece que ya he resuelto mi problema parece que era un error del framework del servior ya que tenia una version mas atrasada
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:32.