Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I make a windows services , this services run with user Toto, in the windows session i'm logged in Toto,

Steps:
- My service run un batch file
- the batch file run a program, doing an excel file
c:\temp\MMW5.exe -f "c:\0temp\test.mkd"

when i execute th batch with double click all is work?

When if my service run the batch i have an error :

16:30:59 - [OUT 35452] - Error: Error manager for <CISAExcelWriter> reported error:
16:30:59 - [OUT 35452] - Error writing "c:\users\Toto\appdata\local\temp\markdata\mmw5\tmp3\map848ac6d8.xls" file (SAExcel exception).


but the folder was created, While ?


Thank you very much

What I have tried:

Hello i have an error somebody have an idea thank you very much
Posted
Updated 3-May-18 5:00am

1 solution

If whatever you're using to do this uses Excel Interop, you cannot use Excel from a Windows Service application. It's not supported.

I have no idea what MMW5.exe is or where it came from, so if there is a problem with using that from a service, you're going to have to talk to the people who wrote that executable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900