La Web del Programador: Comunidad de Programadores
 
    Pregunta:  47883 - PUBLICANDO PAGINAS ASP .NET
Autor:  SnakE GAP
Komo estamos, Miren al publikar y ejekutar el site, en el login me sale lo siguiente:

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>


Cual es el Motivo??

  Respuesta:  SnakE GAp
Gracias x las respuestas, bueno pos ya tengo experiencia en estos asuntos, Danilu lo malo de estos post es k no veo la fecha pero el asp .net 2005 facil se ejecuta en iis 6 inclusive en iis 7

  Respuesta:  Leonardo Alfaro A.
Saludos.

-En la carpeta donde tienes publicado el sitio dale permiso de administrador a todo.

-Si ejecutas el proyecto desde el entorno de vs.net, abre el vs.net dándole click derecto, ejecutar como administrador.

Estas son las soluciones que le doy cuando se me presenta este problema.

Bendiciones.

  Respuesta:  DANA FERNANDEZ GOMEZ
hola!!! mira ese error se muestra cuando el direccionamiento de la pagina no esta bien..creo q la pagina a la q redirecciones esta dentro de una carpeta si es asi tienes q poner un slash con el nombre de la carpeta...ejemplo
<customErrors mode="RemoteOnly" defaultRedirect="/pantallasdeerror/mycustompage.htm"/>
otro ejemplo es:
Me.Response.Redirect("../Default.aspx")
los dos puntos (..) es para salir del directorio actual...y ami se me hace q estas en una carpeta diferente donde se encuentra la pagina mycustompage.htm....suerte.......oye una temgo una pregunta para ti...el .net 2005 sobre q IIS se publica desde el 6.0 lo trato de correr en el 5.1 pero no habre las paginas..y el iis 6.0 estoy consiguiendolo para probar...bueno....suerteee!! si sabes contestame plis!!