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

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
HStrixAsked:
Who is Participating?
 
moduloConnect With a Mentor Commented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0
 
CJ_SCommented:
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
 
HStrixAuthor Commented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CJ_SCommented:
>> 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
 
HStrixAuthor Commented:
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
 
CJ_SCommented:
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
 
HStrixAuthor Commented:
0
 
CJ_SCommented:
Does it actually work for ASP.Net?

Glad you resolved it yourself though  :-)
0
 
HStrixAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.