hello
i did wrote a activex dll for a application
(it uses mapi)
send/read/save emails..
its working quite good when i run it local
but when i add it as service (i need to have it as service![with options logon as]) the programm that access the dll crashs all the time
i did add a little error handle to check whats going on and get this msg back when the programm crash
(the error occurs when the other program runs a function that creates the outlook.application object)
Error MSG:
Error -2147221246: Could not complete the operation because the service provider does not support it.
(also known as invalid window handle)
well as i said i run srvany and this program runs a little application that interacts with the dll
problem is that this little app crash with that error msg
is it bec the activex dll is used? like that?
(because its using another user that isnt logged in really?
(remeber it uses Logon as: (in service properties!)
can u run a activex dll (with createobject/outlook.application? like that?
i did search the web but infos are really rare!
(before u answer:
yes the user exists
yesservice running
no the dll is working
yes class id is ok (exe<->dll)
yes the user has a email account and outlook is setup
everyone is admin
im running this on SBS 2003 (small buisness server)
it must run as service bec if server crash (server restarts!) and if not service it wont start..
nope cant run it in autostart! *g* i have to use 1 email account! thats why i use it as service (logon as)!
hope someone can help me!
or at least give me some links to forums or whatever else..
where i could maybe get some answers/help ?
i did wrote a activex dll for a application
(it uses mapi)
send/read/save emails..
its working quite good when i run it local
but when i add it as service (i need to have it as service![with options logon as]) the programm that access the dll crashs all the time
i did add a little error handle to check whats going on and get this msg back when the programm crash
(the error occurs when the other program runs a function that creates the outlook.application object)
Error MSG:
Error -2147221246: Could not complete the operation because the service provider does not support it.
(also known as invalid window handle)
well as i said i run srvany and this program runs a little application that interacts with the dll
problem is that this little app crash with that error msg
is it bec the activex dll is used? like that?
(because its using another user that isnt logged in really?
(remeber it uses Logon as: (in service properties!)
can u run a activex dll (with createobject/outlook.application? like that?
i did search the web but infos are really rare!
(before u answer:
yes the user exists
yesservice running
no the dll is working
yes class id is ok (exe<->dll)
yes the user has a email account and outlook is setup
everyone is admin
im running this on SBS 2003 (small buisness server)
it must run as service bec if server crash (server restarts!) and if not service it wont start..
nope cant run it in autostart! *g* i have to use 1 email account! thats why i use it as service (logon as)!
hope someone can help me!
or at least give me some links to forums or whatever else..
where i could maybe get some answers/help ?