Solved

popup message

Posted on 2016-10-13
3
37 Views
Last Modified: 2016-10-13
I use my desktop as dev server, it runs fine with the message such as the following:

System.Windows.Forms.MessageBox.Show("HERE")

But when I move it to production, I am getting error

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.


I need that to alert user if they want to overwrite the report with YES/NO.  Why doesnt it work and is there any other way?  thanks
0
Comment
Question by:mcrmg
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 500 total points
ID: 41842659
If this is really ASP.Net, you'll need to inject some javascript into your page.  All that "system.windows" stuff runs on the server, not on the client.
0
 

Author Closing Comment

by:mcrmg
ID: 41842662
Thank you
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 41842711
Happy to help!

Good luck!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
asp.net bundle 8 46
creating a flowchart from an algorithm 5 30
Why is some text in blue in Visual Studio? 6 22
SQL Login 17 37
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now