Link to home
Start Free TrialLog in
Avatar of agnesfernandes
agnesfernandes

asked on

Web application giving error - Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation.

I have a webapplication which works on a server. The application is working fine with one SQL database, however when i connect to another SQL database - I am getting the following error.
-------------error shown--------------------------
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.
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: 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
----------------error ends------------------

I need to resolve this quickly...

Thank you for your advice. Agnes
Avatar of SameerJagdale
SameerJagdale
Flag of United States of America image

are you using messagebox in your application?
Avatar of agnesfernandes
agnesfernandes

ASKER

no...not on the first page. and the application works when i connect to another database.
ASKER CERTIFIED SOLUTION
Avatar of SameerJagdale
SameerJagdale
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
there was no message box in the page - so i did three things - copied and restored database, tried windows authentication [it worked] and then swtiched to mixed it still worked.