How to resolve Error : Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation
<p>I am working on project. In my System when I run the project it is running nicely, but after uploading it to my domain when I check, then it displays the error like:</p>

<p>"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."</p>

<p><strong>Description</strong>: 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. </p>

<p><strong>Exception Details</strong>: 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.</p>

<p>What is is the reason for this and how can I resolve it?</p>

<p>Please help me...</p>

<p>Thanks.</p>
