Hello,
I am using NAppupdate library to update my application in the following main steps:
1. Check for updates:
updManager.CheckForUpdates();
2. Prepare Update:
updManager.PrepareUpdates();
3. Apply Updates: (Exception 1)
updManager.ApplyUpdates(true, true, true);
4. Rollback update: (if anything goes wrong) (Exception 2)
UpdateManager.Instance.RollbackUpdates();
It works perfectly fine in debug mode.However, in release mode,I get the following exception
(Exception 1)
"System.TimeoutException: The NamedPipeServerStream timed out waiting for a named pipe connection, but the process has exited with exit code: -532459699(System.Runtime.InteropServices.ComException)"
(Exception 2)
"System.UnauthorisedAccessException: Access to the path <EXEPATH> is denied
at System.IO._Error.WinIOError(Int32 errorCode,String maybeFullPath)
at System.IO.File.Internalelete(String path,Boolean checkHost)
at System.IO.File.Delete(String path)
at NAppUpdate.Framework.Tasks.FileUpdateTask.Rollback()"
Can you please guide me to fix this exception during release mode?