473,414 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

MsgBox Error

Hi, everyone

I use MsgBox("message") function, but error as follows:

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.

I don't understand, how can I solve the problem.

Thanks for help!
CHJ
Nov 17 '05 #1
1 1232
Hello,

This is an ASP.NET newsgroup and I guess you have a web application.
MsgBox("message") is mainly used for a windows desktop application. If you
want to show a pop up message on a web application you can use a Javascript
function.
"Chiu Hung Jung" <hj@fortunengine.com.tw> wrote in message
news:uG*************@TK2MSFTNGP10.phx.gbl...
Hi, everyone

I use MsgBox("message") function, but error as follows:

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.

I don't understand, how can I solve the problem.

Thanks for help!
CHJ

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JT | last post by:
im trying to use the MsgBox function in the following to display an ASP MsgBox containing text retrieved from the db into a recordset <% set rsMessages= myRecordset msg_text =...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
1
by: Andrew | last post by:
Here's all of my code... Private Sub Submitted_Click() On Error GoTo Err_Submitted_Click DoCmd.SetWarnings False MsgBox("Have you ensured that no errors are present in the data?", 4, "Are...
2
by: Radith Silva | last post by:
I need to use the MsgBox function like I used to in VB 6.0 So all i do is: MsgBox ("Please provide Input") BUT IN .NET: The error reads "msgbox is a namespace"
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
2
by: Parasyke | last post by:
I have an email Sub set up that works fine except upon a successful send I get a blank message box with just an OK button. How can I change this to read something different? I have no event handler...
1
by: Arpan | last post by:
I use VB.NET to create ASP.NET applications. To display a message box in a VB app, one can use MsgBox. But when I used MsgBox while editing an ASPX page, the following error was generated: ...
9
by: Ivan Jericevich | last post by:
In my code below at the line 'response' a blip sound is heard and the program exits the sub -- No MsgBox is displayed. What am I doing wrong? If nonNumberEntered = True Then msg = "Enter...
4
by: rzito | last post by:
I am looking for a technique with regards to the message displayed when you enter text into a numeric field. I obviously get the "The value entered isn't valid for this field" message how do I...
3
by: Adam Sandler | last post by:
Hello, I'm converting this code from VB: Try With serialPort ' snip End With Catch ex As Exception MsgBox(ex.ToString)
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.