plateheates
09-22-2003, 02:19 AM
I've got following message.
Please help me overcoming this problem.
Server Error in '/pheprog' Application.
> _____
> It is invalid to show a modal dialog or form when the application is not
> running in UserInteractive mode. 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: It is invalid to show
> a modal dialog or form when the application is not running in
> UserInteractive mode. 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: It is invalid to show a modal dialog or form
> when the application is not running in UserInteractive mode. Specify the
> ServiceNotification or DefaultDesktopOnly style to display a notification
> from a service application.]
> System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner, String
> text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
> MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +644
> System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text,
> String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
> MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +23
> Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle
> Buttons, Object Title) +321
> PHEProg.FluidProperty..ctor() in
> c:inetpubwwwrootPHEProgFluidProperty.vb:231
> PHEProg.Condition..ctor() in c:inetpubwwwrootPHEProgCondition.vb:70
> PHEProg.ftmPHE.Button1_Click(Object sender, EventArgs e) in
> c:inetpubwwwrootPHEProgfrmPHE.aspx.vb:112
> 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() +1277
>
>
> _____
>
> Version Information:?Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET Version:1.1.4322.903
[xx(]
Please help me overcoming this problem.
Server Error in '/pheprog' Application.
> _____
> It is invalid to show a modal dialog or form when the application is not
> running in UserInteractive mode. 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: It is invalid to show
> a modal dialog or form when the application is not running in
> UserInteractive mode. 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: It is invalid to show a modal dialog or form
> when the application is not running in UserInteractive mode. Specify the
> ServiceNotification or DefaultDesktopOnly style to display a notification
> from a service application.]
> System.Windows.Forms.MessageBox.ShowCore(IWin32Win dow owner, String
> text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
> MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +644
> System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text,
> String caption, MessageBoxButtons buttons, MessageBoxIcon icon,
> MessageBoxDefaultButton defaultButton, MessageBoxOptions options) +23
> Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle
> Buttons, Object Title) +321
> PHEProg.FluidProperty..ctor() in
> c:inetpubwwwrootPHEProgFluidProperty.vb:231
> PHEProg.Condition..ctor() in c:inetpubwwwrootPHEProgCondition.vb:70
> PHEProg.ftmPHE.Button1_Click(Object sender, EventArgs e) in
> c:inetpubwwwrootPHEProgfrmPHE.aspx.vb:112
> 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() +1277
>
>
> _____
>
> Version Information:?Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET Version:1.1.4322.903
[xx(]