MsgBox Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chiu Hung Jung

    #1

    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 ServiceNotifica tion
    or DefaultDesktopO nly 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.InvalidO perationExcepti on: It is invalid to
    show a modal dialog or form when the application is not running in
    UserInteractive mode. Specify the ServiceNotifica tion or
    DefaultDesktopO nly style to display a notification from a service
    application.

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

    Thanks for help!


    CHJ


  • abacnet

    #2
    Re: MsgBox Error

    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@fortunengin e.com.tw> wrote in message
    news:uGFRIoiWDH A.388@TK2MSFTNG P10.phx.gbl...[color=blue]
    > 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 ServiceNotifica tion
    > or DefaultDesktopO nly 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.InvalidO perationExcepti on: It is invalid to
    > show a modal dialog or form when the application is not running in
    > UserInteractive mode. Specify the ServiceNotifica tion or
    > DefaultDesktopO nly style to display a notification from a service
    > application.
    >
    > I don't understand, how can I solve the problem.
    >
    > Thanks for help!
    >
    >
    > CHJ
    >
    >[/color]


    Comment

    Working...