Unable to post via Task Scheduler - System.Runtime.InteropServices.COMException (0x80004005)

When the user is login and the Task Scheduler fired up, the posting in SAGE is successful. But when the user is Signed Out and Task Scheduler fire up. We received an error:

Error: External component has thrown an exception.. Inner: . Full: System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at AccpacCOMAPI.IAccpacViewField.PutWithoutVerification(Object& pNewVal)

Our app is created from .NET windows app.