Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Gestione errori

  1. #1

    Gestione errori

    Cosa devo inserire nel web.config per visualizzare gli errori in modo
    dettagliato (riga con errore e relativa "parola errata?")

    ad esempio, i web.config sono impostati in questo modo



    <system.web>




    <compilation debug="false" />


    <customErrors mode="RemoteOnly" />

    <authentication mode="Forms">
    <forms name="App" loginUrl="~/login.aspx" protection="None"
    timeout="60" />
    </authentication>

    </system.web>
    Iceberg

  2. #2

  3. #3
    Ho provato e non vedo niente!!!

    continuo a vedere, ad esempio




    '/AspNetForums' Application.
    ----------------------------------------------------------------------------
    ----

    Impossibile risolvere il conflitto di regole di confronto per l'operazione
    equal to.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information
    about the error and where it originated in the code.

    Exception Details: System.Data.SqlClient.SqlException: Impossibile risolvere
    il conflitto di regole di confronto per l'operazione equal to.

    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:


    [SqlException: Impossibile risolvere il conflitto di regole di confronto per
    l'operazione equal to.]
    System.Data.SqlClient.SqlCommand.ExecuteReader(Com mandBehavior
    cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
    System.Data.SqlClient.SqlCommand.ExecuteReader() +41
    AspNetForums.Data.SqlDataProvider.GetSiteStatistic s() +109
    AspNetForums.Components.Statistics.GetSiteStatisti cs() +120
    AspNetForums.Controls.SiteStats.InitializeSkin(Con trol skin) +20
    AspNetForums.Controls.SkinnedForumWebControl.Creat eChildControls() +24
    System.Web.UI.Control.EnsureChildControls() +100
    System.Web.UI.Control.PreRenderRecursiveInternal() +38
    System.Web.UI.Control.PreRenderRecursiveInternal() +125
    System.Web.UI.Control.PreRenderRecursiveInternal() +125
    System.Web.UI.Control.PreRenderRecursiveInternal() +125
    System.Web.UI.Page.ProcessRequestMain() +1489







    ma non capisco a che riga/pagina si trova l'errore
    Iceberg

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    1,482
    Io lo imposto in ogni pagina:

    <%@Page Language="VB" Debug="True"%>

    Hey hey, my my Rock and roll can never die!

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.