Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation

Posted on 2009-07-02
3
Medium Priority
?
1,063 Views
Last Modified: 2012-05-07
Hi all Im new asp.net, and have made a boo boo - I have used a message box function on the vb.net page tied to an asp.net page - when I run it from Visual studio 2005 it works fine, when i run it from the iis manager I get the 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 believe it has some thing to do with server/client - but dont know how I can get round it - Please help!
reply = MsgBox("Do you want to Create a record For " & Organisation.Text, MsgBoxStyle.YesNo, "Add record")
 
 
        If reply = 6 Then
' do some stuff
else
'dont do nuffin
end if

Open in new window

0
Comment
Question by:m3housing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
mohan_sekar earned 2000 total points
ID: 24767257
You cannot show a messagebox a that way - that works only in design time or if it's a desktop application. Use javascript on client side - confirm() is what you need - http://www.tizag.com/javascriptT/javascriptconfirm.php
0
 

Author Comment

by:m3housing
ID: 24767360
its on my vb.net from though - and pops up if the user clicks a command button
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 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