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

Problem :-

"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"

Solution :-


                This type of error msg you get when you are using Windows dialog box (Message box) to display message in it.

                if you are running application from local you not getting this error message but when you run this application form network you get this error msg.This because when you use windows message box it's interact with current running windows and for interaction windows required adminsistrator or Similar type prevailing user . instead of this use label to Print error or use java script alert or confirm.

                please reader write when you get this error msg in below comment box.








Posted in |

1 comments:

  1. Anonymous Says:

    how solution for problem
    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

    pleas help me ?

Post a Comment