G
Guest
I am getting this error message when I run Aspx form of a Visual Basic .Net Applicatio
"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.
Line 37: title = "MsgBox Demonstration" ' Define title
Line 38: ' Display message
Line 39: response = MsgBox(msg, style, title
Line 40: If response = MsgBoxResult.Yes Then ' User chose Yes
Line 41: ' Perform some action
and the error message is in line 39
Stack Trace is ------
"[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(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options
System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options
Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.vb:3
System.EventHandler.Invoke(Object sender, EventArgs e) +
System.Web.UI.Control.OnLoad(EventArgs e
System.Web.UI.Control.LoadRecursive(
System.Web.UI.Page.ProcessRequestMain()
where I should apply this style or specify the ServiceNotificatio
"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.
Line 37: title = "MsgBox Demonstration" ' Define title
Line 38: ' Display message
Line 39: response = MsgBox(msg, style, title
Line 40: If response = MsgBoxResult.Yes Then ' User chose Yes
Line 41: ' Perform some action
and the error message is in line 39
Stack Trace is ------
"[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(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options
System.Windows.Forms.MessageBox.Show(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options
Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.vb:3
System.EventHandler.Invoke(Object sender, EventArgs e) +
System.Web.UI.Control.OnLoad(EventArgs e
System.Web.UI.Control.LoadRecursive(
System.Web.UI.Page.ProcessRequestMain()
where I should apply this style or specify the ServiceNotificatio