Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Errore web.config

  1. #1
    Utente di HTML.it L'avatar di ciupaz
    Registrato dal
    Dec 2000
    residenza
    Milano
    Messaggi
    848

    Errore web.config

    Ciao a tutti,
    la mia applicazione, che funziona regolarmente nel mio pc, una volta riportata sul server di produzione, mi da' il seguente errore che non capisco:

    Server Error in /Prog 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 reason). It could however be viewed by browser running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machine, 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 it's mode attribute set to "Off".


    <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 "defaulRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.



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

    A cosa può essere dovuto?
    Grazie

  2. #2
    Te lo dice il messaggio ...

    C'è un errore ma in Remoto hai messo nel web.config di non mostrare gli errori quindi non sa dirti il perchè ...

    Normlamente succede con un percorso assoluto sbagliato, un file mancante, etc etc ...

    Comunque metti il web.config in remoto con CustError 'off' e vedi che errore hai ... o metti in debug o lavora col trace

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.