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

x
?
Solved

ASP.Net: MsgBox in a windows dll added to references in web application

Posted on 2004-10-27
10
Medium Priority
?
365 Views
Last Modified: 2008-02-01
Hello experts,
I created an ASP.Net web application (in C#.Net) as above mentioned.
I also created a windows class (in VB.Net) containing only a method with MsgBox inside.
In the web application I invoked that method.

In .Net 2002 (version 1.0) this worked,
the message appeared always on the web server
(the clients cannot see that message,
 but they need to wait until the OK button of the MsgBox has been clicked).

In .Net 2003 (version 1.1) I get the error
---
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
---
My question is, is there a way to get rid of this?

I know that this might be a very rare functionality,
but it did work in .Net 2002.

  Thank you for any help.

   HStrix
0
Comment
Question by:HStrix
[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
  • 4
  • 4
10 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 12419644
Why would you want a messagebox on the server? If you really neewd to log something you might want to write to the EVentLog.
0
 

Author Comment

by:HStrix
ID: 12419710
That's why I wrote
---
I know that this might be a very rare functionality,
but it did work in .Net 2002.
---
I only wanted to be able to do this,
the problem what you mean is
that someone needs to watch the server too.

For recording it would be possible  (as you mentioned) to use the eventlog or another own created log.

0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12419759
>> I know that this might be a very rare functionality

Yea, it sure is, and I just cannot understand why you would want that. I mean, you shouldn't show a messagebox at the server. What is the reason you want this? I'm fairly sure there are better methods...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:HStrix
ID: 12419820
Currently I can only imagine special online test situations.

But I want to be prepared to know how I could do that just-in-case...

0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12419846
Even though you definitely shouldn't??

One way would be by creating a Remoting Application. Connect to this application from your asp.net application and call a OneWay method. This method can then give the messagebox to the user, or write out a message in a list.

Although I still cannot see any use for this...

CJ.



0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12420171
Does it actually work for ASP.Net?

Glad you resolved it yourself though  :-)
0
 

Author Comment

by:HStrix
ID: 12420677
I checked it in Asp.Net 2003 (version 1.1) using a dll created as windows class.
The dll has a method with this messabox statement.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12740835
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
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…
Suggested Courses

598 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