I have an application to log time spent on an activity. I have published it as a ClickOnce app so that it is easy for users to install, and makes sure they are aware of updates. The problem I have is that as the applications needs to run everytime wondows starts, I have a piece of code in the app startup that creates a shortcut in the users Startup group (bit of a hack I know) and on most machines this works fine. On some machines however, I get an UnauthorizedAccessException when the application runs saying that it cannot create the shortcut.
To create the shortcut, I use the Windows Script Host Object Library, and call WshShell.CreateShortcut(). The application is deployed as Full Trust as it is only available on out internal network, and on all the machines, the Domain Users group in a member of local admins, so the user should have administrative privilages. The user can manually create the shortcut, but it fails from the app.
As I say, this only seems to affect certain machines, but I can't see any differences between them. They are all W2K Professional boxes. I don't get anything more useful in the exception that Unauthorised Access and the HRESULT code of 0x80070005 (E_ACCESSDENIED).
Any ideas anyone
Cheers,
Bill

Permissions problem