Hi Support team,
I have .exe from VB.NET job which able to run by double from a network drive. But this .exe job able to run in a windows task scheduler only a production environment server. The job get error when run in a task scheduler on a backup server.
Windows Server 2019, Office 2016 the same program .exe job on both server
The task scheduler able to create a text log file. But unable to open, add a workbook and get this error.
22/04/2024 09:29:32 CreateObject("Excel.Application") is pass.
22/04/2024 09:29:32 unable to add a workbook to objExcel. Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space.
• To make more memory available, close workbooks or programs you no longer need.
• To free disk space, delete files you no longer need from the disk you are saving to.
22/04/2024 09:29:32 unable to assigh a cell value in a sheet. Object reference not set to an instance of an object.
22/04/2024 09:29:32 Fail to save as Test_output.xlsx. Object reference not set to an instance of an object.
I've set both :
- group policy "log on as batch" adding a user account to run
- create "Desktop" folder under systemprofile in under System32 and SysWOW64 as able to find from the internet.
this link has issue nearly the same but the solution is unable for my case.
https://answers.microsoft.com/en-us/insider/forum/all/cannot-run-taskmanager-gettting-error-windows/c6458b0f-aaf3-461b-84bb-cb1da275dde9
Need your suggestion,
Kittisak