.Net Windows service failed to call Word macro


  • Hi,


    I have a Windows application that calls a Word macro and it works fine.


    However, when I converted the application to .Net (2005) Windows service and run the service with an account that is a member of the Administrators on the machine, the service failed when it tried to execute"macroname") with the following error: The remote procedure call failed. (Exception from HRESULT: 0x800706BE).


    Any pointers with this will be much appreciated.




    Friday, August 31, 2007 4:41 AM


  • Hi,


    This forum is actually about Visual Studio extensibility, not Office automation.


    That said, first check that the Windows application (not the Service application) runs fine when you log in with the admin account, not with your account.


    Finally, notice that Office applications are not designed or supported for server scenarios, so it could be that you can't use Office from a service, only from a logged-in desktop.

    Friday, August 31, 2007 8:48 AM