?
Solved

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.

Posted on 2008-11-04
4
Medium Priority
?
7,406 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:agnesfernandes
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22883300
are you using messagebox in your application?
0
 

Author Comment

by:agnesfernandes
ID: 22883495
no...not on the first page. and the application works when i connect to another database.
0
 
LVL 13

Accepted Solution

by:
SameerJagdale earned 2000 total points
ID: 22902107
are you using mixed mode authentication? can you try with windows authentication if it helps?
0
 

Author Closing Comment

by:agnesfernandes
ID: 31513413
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.

0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Loops Section Overview
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question