Ran into an issue where the Windows Task will no longer run as intended, instead it give the 0xE0434352 error code in the last run. When looking into the Windows Event Viewer Logs I see a more detailed error that contains the following:
Application: QlikSenseEmailAdmin.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.DirectoryNotFoundException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean)
at System.IO.StreamWriter.CreateFile(System.String, Boolean, Boolean)
at System.IO.StreamWriter..ctor(System.String, Boolean, System.Text.Encoding, Int32, Boolean)
at System.IO.StreamWriter..ctor(System.String)
at MyLogger.Logger.Start(System.String)
at QlikSenseEmailAdmin.Program.Main(System.String[])
I have the task running with the highest privleges (admin). Also the process runs successfully if I run it from the command prompt manually. Not sure what the root cause of the issue here is.
Ran into an issue where the Windows Task will no longer run as intended, instead it give the 0xE0434352 error code in the last run. When looking into the Windows Event Viewer Logs I see a more detailed error that contains the following:
Application: QlikSenseEmailAdmin.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.DirectoryNotFoundException at System.IO.__Error.WinIOError(Int32, System.String) at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean) at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean) at System.IO.StreamWriter.CreateFile(System.String, Boolean, Boolean) at System.IO.StreamWriter..ctor(System.String, Boolean, System.Text.Encoding, Int32, Boolean) at System.IO.StreamWriter..ctor(System.String) at MyLogger.Logger.Start(System.String) at QlikSenseEmailAdmin.Program.Main(System.String[])
I have the task running with the highest privleges (admin). Also the process runs successfully if I run it from the command prompt manually. Not sure what the root cause of the issue here is.