Message.Show is not working when webpage is published <p>I created a ASP.NET project in which I am using MessageBox.Show to show the user if there is an error or something else. But when I published it, it is giving me this err:</p> <h2> Server Error in '/' Application.</h2> <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>Dont know what it means? What the turnaround of it? Thanks!</p>