Operation failed

G

Guest

I have written a dll in vb.net to send faxes using the FAXCOMEXLib. The dll
works fine when embedded in a windows application but if i try and embed the
dll in a windows service, when the dll calls the iFaxDocument.ConnectedSubmit
command i receive an operation failed 0x80004005 error. The only explanation
i can come up with is that the FAXCOMExLib needs to be called from an active
form which it doesnt have when running as a service.
Has anyone else experienced this problem and how can i overcome it ?

Thanks in advance
 
G

Guest

I now have more information. It would appear that the problem is not simply
down to running as a service.
If i click a button on a form to send a fax then everything works fine. If
however the same code gets called from an event (a timer elapsed event) then
the code fails
 
G

Guest

I now have some more information. It looks like it has nothing to do with the
service.
It would appear that if I click on a button then the code to send the fax
works fine. However if the code is called from an event e.g. (a timer elapsed
event) then an error occurs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top