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
1,039 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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

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 web application 3 46
disable data migrations in visual studio 2017 4 50
asp.net figure out error 3 26
Telerik RadEditor Control Save 8 15
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…

726 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