I have a VB app that i run from a service (The app run at winsta0\\default).
The app runs under the localsystem account.
In my app i have:
Private WithEvents winShell As SHDocVw.ShellWindows
and then in one of the functions:
set winShell = new SHDocVw.ShellWindows
When it came to that set line, i get this error in a popup dialog:
"automation error" -2147220990 (80040202)
Some points:
1)When i run the app not from the service, everything is working fine
2)When i remove the WithEvents, i do not get that error (but as you can
understand it worthless without the Events).
3)When the app is not running under localsystem then everything is ok.
The problem is related to the combination of the app that runs under the
system account, automation and the WithEvents keyword.
I tried to make the service interactive by going to the service manager,
right click properties, and checking that box - it did not solve it.
Any suggestions?
(the app must stay running from the systemaccount - i can not change it)
I run it on XP pro.
Thanks
Archived from group: microsoft>public>vb>ole>automation