MIDRANGE dot COM Mailing List Archive



Home » SYSTEMIDOTNET » May 2008

MsgBox



fixed

I'm using a MsgBox on my machine with no problems but when I install it
on the server, it doesn't like it...how do I add javascript to my
project? Thanks!
Here's a copy of the error:
Server Error in '/Medicare' 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:

Line 168: If txtDtePrimPartB.Text > "" Then
Line 169: If ddlNotPrimRsnPartB.Text > "" Then
Line 170: MsgBox(("Enter Primary Date OR Not-Primary
reason."), MsgBoxStyle.OkOnly, "Medicare")
Line 171: txtDtePrimPartB.Focus()
Line 172: Exit Sub

Source File: C:\Inetpub\wwwroot\Medicare\PartB.aspx.vb Line: 170

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
MedicareDB.PartB.cmdUpdatePartB_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\Medicare\PartB.aspx.vb:170
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.Rai
sePostBackEvent(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


Mary Koetting
Senior Programmer Analyst
Missouri Consolidated Health Care
573-526-2856







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact