Visualizzazione dei risultati da 1 a 7 su 7

Discussione: prima volta aspx

  1. #1

    prima volta aspx

    cosa devo fare?

    mi dà:

    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>

  2. #2
    nella root del tuo sito (cartella principale) crea un file di nome web.config con le seguenti righe di codice
    codice:
    <configuration> 
    <system.web> 
    <customErrors mode="Off"/> 
    </system.web> 
    </configuration>
    Poi per ottenere maggiori informazioni sul tipo di errore potresti aggiungere l'attributo Debug dove dichiari Page, così:
    codice:
    <%@ Page Language="VB" Debug="true" %>
    Ciao


    Marco

  3. #3
    ah...praticamente come il global in asp...?

  4. #4
    ma dà ancora lo stesso errore..

  5. #5
    Originariamente inviato da ianstilo
    ma dà ancora lo stesso errore..
    Stai provando in locale oppure on line?
    se stai provando on line, assicurati che l'utente ASP.NET abbia tutte le autorizzazioni necessarie.
    Ciao


    Marco

  6. #6
    Utente di HTML.it L'avatar di beke82
    Registrato dal
    Mar 2004
    residenza
    Empoli
    Messaggi
    183
    Prova a mettere dentro il Web.Config questa riga

    <customErrors mode="RemoteOnly" />

    Fammi sapere se funziona



    Beke
    Un Anello per domarli, un Anello per trovarli,
    un Anello per ghermirli e nel buio incatenarli ( J.R.R. Tolkien )

  7. #7

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 © 2026 vBulletin Solutions, Inc. All rights reserved.