Right now it's set to requireAdminister. This way it prompts when started which at least works as a band-aid fix for now.
When run with asInvoker, this is what I get:
Code:
************** Exception Text **************
System.Net.WebException: The operation has timed out
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at Microsoft.VisualBasic.MyServices.Internal.WebClientCopy.DownloadFile(Uri address, String destinationFileName)
at Microsoft.VisualBasic.Devices.Network.DownloadFile(Uri address, String destinationFileName, ICredentials networkCredentials, Boolean showUI, Int32 connectionTimeout, Boolean overwrite, UICancelOption onUserCancel)
at Microsoft.VisualBasic.Devices.Network.DownloadFile(String address, String destinationFileName, String userName, String password, Boolean showUI, Int32 connectionTimeout, Boolean overwrite, UICancelOption onUserCancel)
at TUJDownloader.frmMain.DoWork() in C:\Users\Nobody\documents\visual studio 2010\Projects\TUJ Downloader 2\TUJ Downloader 2\frmMain.vb:line 36
at TUJDownloader.frmMain.Form1_Load(Object sender, EventArgs e) in C:\Users\Nobody\documents\visual studio 2010\Projects\TUJ Downloader 2\TUJ Downloader 2\frmMain.vb:line 17
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
But as stated earlier, the request is sent for download as my counter increments by 1 on the site's user page even though no file is ever downloaded.
Using highestAvailable DOES seem to work the way I want it. There's no UAC prompt at all, there's no error. The program works as expected. My only concern is that I am the sole user of my computer and therefore my account has admin access. Would this work this way on a non-admin account? Would there be a prompt or an error? I can live with a prompt for non-admin users.
Bookmarks