Unable to relaunch application and/or send DTO

269 views
Skip to first unread message

Aaron Stannard

unread,
Aug 4, 2014, 2:15:17 PM8/4/14
to nappu...@googlegroups.com
Hi,

So I've been able to get NAppUpdate to replace my binaries via a cold restart and it looks like everything is working, but I get this error when it attempts to restart my application

8/3/2014 23:32:55.665     Error
Unable to relaunch application and/or send DTO
   at NAppUpdate.Updater.AppStart.Main()

Where should I be looking when I try to debug this? Is this is an issue with NAppUpdate or is this a problem with my application upon startup?

Itamar Syn-Hershko

unread,
Aug 4, 2014, 2:23:28 PM8/4/14
to nappu...@googlegroups.com
This is coming from here: https://github.com/synhershko/NAppUpdate/blob/master/src/NAppUpdate.Updater/AppStart.cs#L165

Meaning, your app couldn't be relaunched, at least not using the paths transfered to the updater. Are you running this from VS?

--

Itamar Syn-Hershko
http://code972.com | @synhershko
Freelance Developer & Consultant


--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aaron Stannard

unread,
Aug 4, 2014, 9:15:47 PM8/4/14
to nappu...@googlegroups.com
No, this is when I run the binary directly.

Itamar Syn-Hershko

unread,
Aug 4, 2014, 9:18:32 PM8/4/14
to nappu...@googlegroups.com
Are you using the code from the latest master? if so, can you recompile and output some logs around the re-launch logic? it doesn't seem to be an issue with transfering the DTO since you say the app doesn't launch, so I'm suspecting some path issues

--

Itamar Syn-Hershko
http://code972.com | @synhershko
Freelance Developer & Consultant


Aaron Stannard

unread,
Aug 5, 2014, 4:14:20 AM8/5/14
to nappu...@googlegroups.com
Looks like I got it working - problem appears to be when I add content to TempFiles in an In-memory source (for testing purposes.) The original file gets moved when the updates are staged and is no longer available when the cold restart begins.

In release mode, however, my binaries get downloaded via a SimpleWebSource and this appears to work fine.
Reply all
Reply to author
Forward
0 new messages