Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2007
    Messaggi
    226

    Errorre:Showing a modal dialog box ....

    ho ricevuto questo errore quando cerco di salvare i dati con una store procedure nel database:

    codice:
    Server Error in '/' Application.
    Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    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.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    
    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:
    
    [InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.]
       System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp) +1799842
       System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +26
       Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title) +544
       Artistic.it.galleria800.inserimento(String RiferimentoPagina) in D:\Siti web\Lavori-siti-web\artistic\Visual-studio\Artistic.it\Artistic.it\admin\galleria800.aspx.vb:208
       Artistic.it.galleria800.Button1_Click(Object sender, EventArgs e) in D:\Siti web\Lavori-siti-web\artistic\Visual-studio\Artistic.it\Artistic.it\admin\galleria800.aspx.vb:215
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
    
    
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

    non capisco perche in locale funziona tutto correttamente.......mentre sul server non funziona mai niente.

  2. #2

    Re: Errorre:Showing a modal dialog box ....

    Originariamente inviato da s.ef
    ...........
    System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner, String text, String
    ......

    non capisco perche in locale funziona tutto correttamente.......mentre sul server non funziona mai niente.
    usare System.Windows.Forms.MessageBox in una applicazione web non ha alcun
    senso (...chi sta davati al browser non vede il messaggio visualizzato invece sul web server...)

    ... spero che tu lo abbia usato solo per il debug ed poi abbia dimenticato di toglierlo

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.