ASP.Net: MsgBox in a windows dll added to references in web application
Posted on 2004-10-27
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.