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.InvalidOperationExc eption: 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
-------------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.InvalidOperationExc
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
are you using messagebox in your application?
ASKER
no...not on the first page. and the application works when i connect to another database.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.