ClickOnce deployment CheckForDetailedUpdate throws an exception
I have an application that's running 24/7 without attendance. It's deployed via ClickOnce and needs to check and download updates by itself. It checks for updates at application startup and at scheduled time at night. When it does it on startup, it works perfectly fine. However, when it does it at scheduled time, it crashes. In both cases it's using exactly the same piece of code. It's running under Windows 7 and might have something to do with UAC . I'm thinking that maybe it cannot access file system when computer is at idle state? I really need to fix that. Here are the exception details: