on clicking content link, aspx page is displayed in content pane,from that page after some action is performed it redirects to various pages dynamically.in the mean time after a particular button click action , message box should be displayed but it displays the following error.
Any one who have suggestions or solutions.pls reply.Thanks in advance.
Server Error in '/DNN' 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 74: scmd.ExecuteNonQuery() Line 75: sc.Close() Line 76: MsgBox("Your REPAIR ID is " & x) Line 77: sc.Open() Line 78: 'scmd.CommandText = "Insert into userlogon values('" & createdby & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "'," & Val(TextBox5.Text) & "," & Val(TextBox6.Text) & ",'" & TextBox7.Text & "','" & TextBox8.Text & "'," & x & ")"
|
Source File: C:\DNN\Repairs.aspx.vb Line: 76
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) +1801570 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 _Default.LinkButton1_Click(Object sender, EventArgs e) in C:\DNN\Repairs.aspx.vb:76 System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +105 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107 System.Web.UI.WebControls.LinkButton.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) +174 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42