Few day back i got this error while i am trying to show message box from windows services.
"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"
To resolve this i set window services "allow interaction with desktop".
also visit this link
http://www.dotnet247.com/247reference/msgs/36/184244.aspx
Might this helps others..
Cheers!!!
Mahesh
ASP.NET Interview Questions |
C# Interview Questions |
.NET Interview Questions |
Dot Net Interview Questions |
VB.NET Interview Questions |
Oracle Interview Questions