System.TimeoutException Exception at ReinstateIfRestarted()

115 views
Skip to first unread message

anup.at...@gmail.com

unread,
Dec 22, 2016, 9:17:34 PM12/22/16
to NAppUpdate
I managed to integrate the library. The new file gets downloaded and old one replaced but after relaunch if I click on 'Update' an error gets thrown.

I will try to explain my code - 
I have the following code in a forms constructor

            UpdateManager updManager = UpdateManager.Instance;
            updManager.UpdateSource = new SimpleWebSource(URL);
            updManager.Config.TempFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Controller_main\\Updates");
            updManager.ReinstateIfRestarted();

And on 'Update' button click -

            CheckForUpdates();

FormClosed - 
            
            if (UpdateManager.Instance.State != UpdateManager.UpdateProcessState.Checked) return;
            UpdateManager.Instance.CleanUp();     

ERROR

   System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at NAppUpdate.Framework.Utils.NauIpc.ReadDto(String syncProcessName) in C;\NAppUpdate.Framework\Utils\NauIpc.cs:line 91
   at NAppUpdate.Framework.UpdateManager.ReinstateIfRestarted() in E:\NAppUpdate.Framework\UpdateManager.cs:line 497

Itamar Syn-Hershko

unread,
Dec 29, 2016, 11:48:20 AM12/29/16
to nappu...@googlegroups.com
What version are you using? I think this has been fixed on master

--

Itamar Syn-Hershko
Freelance Developer & Consultant
Elasticsearch Consulting Partner

--
You received this message because you are subscribed to the Google Groups "NAppUpdate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nappupdate+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages