I am using code in a VB.NET dll that is used for a winforms app, and calling
some of the routines from a web service. Even though the code never makes it
to a message box, message boxes are spread throughout some of these
routines. I seem to be getting an error randomly in the code, even though
the code should not generate an 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."
Can I not just use a global variable to write out an audit log instead of
showing message boxes? Or are web services going to error just because a
message box is a possibility in the code?
Derek