Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,117

    Consiglio Web Application locale - server

    Non capisco per quale motivo una web applications .NET che in locale funziona correttamente, sul server durante un'operazione di scrittura sul DB da un errore (che allego di seguito). Questo errore sembra verificarsi sono in una specifica situazione (intendo che le altre operazioni sul DB avvengono con successo), ma con gli stessi dati in locale funziona correttamente.


    Sui due sistemi locale e server è presente la stessa versione del Framework: 1.14322, il DB è identico in quanto ho preso il DB presente sul server.

    Cosa può essere?




    Server Error in '/App05' Application.
    --------------------------------------------------------------------------------

    Overflow
    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.OleDb.OleDbException: Overflow

    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:


    [OleDbException (0x80040e57): Overflow]
    System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(Int32 hr) +41
    System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174
    System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult) +92
    System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult) +65
    System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method) +112
    System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +66
    App.Admin.DettaglioDe.buttonAdd_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\App\Admin\DettaglioDe.aspx.cs:2 438
    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
    System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
    System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
    System.Web.UI.Page.ProcessRequestMain() +1292




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

  2. #2
    Utente di HTML.it L'avatar di edaje
    Registrato dal
    Jul 2003
    Messaggi
    363
    Credo che sia un errore in fase di conversione di dati. Forse i due db hanno diverse impostazioni (magari la lingua per le date???)

    Prova a "trappare" l'errore in un blocco try catch e a fare debug

  3. #3
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,117
    In effetti i due sistemi operativi hanno due lingue diverse ... ma avevo già impostato la lingua nel web.config:

    <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="it-IT" uiCulture="it-IT" />

    ???

    Inoltre in altre operazioni sulle date non ci sono problemi, nel senso che vengono salvate e gestite nel formato corretto italiano.


  4. #4
    Utente di HTML.it L'avatar di edaje
    Registrato dal
    Jul 2003
    Messaggi
    363
    Leggendo l'errore vedo che viene scatenato dal click su un pulsante. Che operazione compie?

    Normalmente l'overflow è un numero che diventa troppo grosso. Ma qui l'errore non è nel framework ma sul db (da oledbexception)

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.