This project is read-only.




Running the latest changeset on Vista/Win7 results in the following exception, Im not sure what the root cause would be as you can execute this call from Medium Integrity (user-mode), I suggest including an app.manifiest specifying RequireAdmin until you have the COM interop issue resolved and also because legacy file/registry virtualization is not disabled without one.

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.Bits.IBackgroundCopyJob.AddFile(String RemoteUrl, String LocalName)
at BitsNet.BitsManager.AddJob(String url, String fileName, String directory, Boolean autostart)
at BitsMonitor.MainForm.AddJob()
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(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)


MaciekTalaska wrote Oct 29, 2009 at 9:37 PM

Thanks for submitting this issue, I will have a look at it in the nearest future (as soon as I have some more spare time).

MaciekTalaska wrote Dec 31, 2011 at 10:36 PM

Solved. The exception was thrown because there was no check if user had rights to write file in a specified location.