Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2003
    Messaggi
    52

    Asp.Net - Pagine Protette

    salve,
    ho realizzato un sito protetto da login seguendo i passi della guida ad asp.net. Sulla mia macchina funziona benissimo , quando invece lo pubblico sul Aruba.it mi appare il seguente errore:
    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".




    <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.




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

    qualcuno puo aiutarmi
    ciro

  2. #2
    Moderatore di Programmazione L'avatar di alka
    Registrato dal
    Oct 2001
    residenza
    Reggio Emilia
    Messaggi
    24,463
    Segui le indicazioni che ti vengono fornite direttamente dalla pagina di errore: aggiungi la chiave customErrors al file web.config per abilitare la visualizzazione degli errori.
    codice:
    <configuration>
      <system.web>
        <customErrors mode="Off"/>
      </system.web>
    </configuration>
    Almeno cosė sarā possibile diagnosticare il problema che si verifica sul server.

    Attenzione a maiuscole/minuscole: l'impostazione Off va scritta con la prima lettera maiuscola.

    La disabilitazione degli errori viene offerta come impostazione predefinita per evitare di fornire, a fronte della generazione di un errore, informazioni sensibili che possono essere sfruttate da un utente malizioso per compiere azioni non consentite sul sito.

    Ciao!
    MARCO BREVEGLIERI
    Software and Web Developer, Teacher and Consultant

    Home | Blog | Delphi Podcast | Twitch | Altro...

  3. #3
    Utente di HTML.it L'avatar di MMarzia
    Registrato dal
    Mar 2001
    Messaggi
    1,781
    per ASP.NET esiste l'apposito forum.. e ti ricordo che il crossposting č vietato da regolamento
    io sono festosamente cicciottello :: e. cartman

    t'amo senza sapere come, nč quando nč da dove,
    t'amo direttamente senza problemi nč orgoglio:
    cosė ti amo perchč non so amare altrimenti

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.