none
PUBLICACION Y VISUALIZACIÓN PROYECTO ASP.NET VB MVC RRS feed

  • Pregunta

  • Hola, necesito ayuda para poder publicar un proyecto mvc en IIS7 y que me aparezca la página de inicio. Actualmente no encuentra la página de inicio y he puesto las rutas en el fichero global.axa. ¿No se que mas tendría que hacer para que me aparezca la página de inicio? Ejecutando el proyecto en local en mi máquina en Visual Studio funciona correctamente pero al publicarlo en un servidor con IIS7 y ejecutarlo desde cualquier lado no me funciona.
    jueves, 2 de junio de 2016 8:38

Todas las respuestas

  • Hola, qué error te da? Probaste configurar el web.config para que te muestre los errores?

    ¿Estás publicando en un servidor en el que tenés acceso? ¿Le diste permisos de lectura y ejecución a la identidad del Pool que está ejecutando tu sitio?

    Contanos un poquito más para que te podamos ayudar.

    Salu2

    jueves, 2 de junio de 2016 10:00
  • Hola Matías, me da un error genérico de

    Internet Explorer no puede mostrar la página web

    Respecto a tus observaciones:

    - No se como se configura web.config para que muestre los errores.

    - En el servidor que se esta publicando creo que tengo acceso

    - Creo que la identidad de Pool IIS7 tiene los permisos necesarios.


    • Editado Jesús P jueves, 2 de junio de 2016 11:54
    jueves, 2 de junio de 2016 11:52
  • Hola, en la sección system.web, puedes definr el nodo customErrors. Aquí un ejemplo.

    Cuando lo pongas a Off, te mostrará los errores como cuando estás depurando.

    Por cierto, qué código te devuelve el servidor cuando le pedís esa página?

    jueves, 2 de junio de 2016 13:13
  • He implementado el código en el fichero web.config pero no se donde se muestran los errores.
    viernes, 3 de junio de 2016 7:07
  • Estoy muy parado y muy agobiado con el tema de la publicación de este proyecto y tengo detenido un proyecto que quería publicar para que el usuario pudiera probar la aplicación y depurar así las funcionalidades y los datos de las tablas. ¿Sabes si alguien me podría echar una mano al respecto?
    lunes, 6 de junio de 2016 14:59
  • Hola, disculpa por no contestar en varios días...

    Creo que si aun no lo has solucionado, vamos a necesitar un poco más de información. El error que nos presentas es muy genérico.

    Lo primero es averiguar qué está devolviendo el servidor si es que contesta. Entonces abrí la página con Chrome y apretá F12. En la pestaña de network recargá la página y hacenos un pantallazo. Ahí vamos a intentar ver qué devuelve el servidor.

    Contanos un poquito sobre el despliegue. Es en IIS7. ¿Tiene permisos de lectura la identidad del AppPool que está corriendo tu sitio? ¿Hay otros sitios configurados en el servidor?

    Podrías intentar mirar en el log del IIS, suele estar en C:\inetpub\logs\LogFiles\W3CSVC{idSitio}\, donde idSitio es el identificador que tenga el sitio en la lista de sitios que se ve en el IIS. Ahí adentro verás un fichero por día (ojo las fechas de dentro están en UTC). Probá hacer una petición y a ver si se actualiza el fichero del día actual y si es así peganos la línea que te da (desde que hacés la petición, puede tardar unos minutos en actualizarse el archivo).

    Con lo que nos vayas diciendo te intentamos ayudar.

    Salu2 y no desesperes

    martes, 7 de junio de 2016 5:22
  • Hola Matías, he seguido tu recomendación y la pantalla que me sale es esta.

    /jonas/AppRecursos/Account/Login?ReturnUrl=%2FAppRecursos%2FAccount%2…2525252525252525252525252FAppRecursos%25252525252525252525252525252525252F

    Failed to load resource: the server responded with a status of 404 (Not Found)
    /jonas/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)

    No se porque se me va a la página de validación de usuario si yo no quiero que valide por aquí al usuario. Tengo configurado en web.config para que la autentificación la haga por Windows. No se como hacer para que arranque con la página de inicio que yo quiero. He probado ha poner rutas en el fichero global.axa.

    La versión de IIS es la 7 y hay alguna otra aplicación funcionando en asp pero no con MVC. Respecto a los permisos creo que están autorizados para poder ejecutar la aplicación.

    El fichero de log que me comentas tiene el siguiente contenido:

    #Software: Microsoft Internet Information Services 7.5
    #Version: 1.0
    #Date: 2016-06-07 06:38:09
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos - 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 29625
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 93
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 62
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 46
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 0
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 46
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAppRecursos%252525252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 46
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAppRecursos%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAppRecursos%25252525252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 0
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAppRecursos%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAppRecursos%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FAppRecursos%2525252525252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAppRecursos%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAppRecursos%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FAppRecursos%2525252525252525252525252FAccount%2525252525252525252525252FLogin%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FAppRecursos%252525252525252525252525252F 80 - 10.172.79.127 Mozilla/5.0+(Windows+NT+6.3;+WOW64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/50.0.2661.102+Safari/537.36 302 0 0 15
    2016-06-07 06:38:09 10.172.81.44 GET /AppRecursos/Account/Login ReturnUrl=%2FAppRecursos%2FAccount%2FLogin%3FReturnUrl%3D%252FAppRecursos%252FAccount%252FLogin%253FReturnUrl%253D%25252FAppRecursos%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAppRecursos%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAppRecursos%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAppRecursos%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAppRecursos%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAppRecursos%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAppRecursos%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAppRecursos%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAppRecu

    martes, 7 de junio de 2016 7:22