question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.ArgumentException at nUpdate.UpdateInstaller.Updater.CopyDirectoryRecursively()

See original GitHub issue

If i try to make an update with an application that run as service i get the following exception :

System.ArgumentException: Der Pfad darf keine leere Zeichenfolge sein oder nur aus Leerzeichen bestehen.
   bei System.IO.Directory.CreateDirectory(String path)
   bei nUpdate.UpdateInstaller.Updater.CopyDirectoryRecursively(String sourceDirName, String destDirName) 

while debugging or if running as normal ui application, the exception doesnt occurs

any ideas ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
swASOcommented, Jul 12, 2018

i think i found it

Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)

this is not possible as service, because a service has no desktop 😉 so the return path is empty

image

image

1reaction
dbforgecommented, Jul 9, 2018

Hi,

I am still trying to figure this out. It seems there is no executable path property in a service application. But I have not yet managed to create a working service that I am able to debug. Sorry for that. I will check that out on Sunday.

Best, Dominic

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postsharp Build Errors after Update to Visual Studio ...
PostSharp 6.7 is not compatible with .NET 5.0 SDK due to MSBuild changes. .NET 5.0 SDK is installed by Visual Studio Installer when ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found