Government Security
Network Security Resources

Jump to content

Photo

Ioexeption Was Unhandled


  • Please log in to reply
No replies to this topic

#1 ROG Onafets

ROG Onafets

    Private

  • Members
  • 4 posts

Posted 06 March 2010 - 02:51 AM

Here's my source that keeps regurgitating IOException errors...


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click


Dim Login_Name
Login_Name = Environment.UserName

Dim BrnOutSavs As String
BrnOutSavs = "C:\Users\" & Login_Name & "\AppData\Local\Criterion Games\Burnout Paradise\Save\"

Dim Desktop As String
Desktop = "C:\Users\" & Login_Name & "Desktop\SaveGame Backup App\SaveGame Backups\"



If CheckBox1.Checked = True Then

My.Computer.FileSystem.CopyDirectory(BrnOutSavs, Desktop)

End If

Here is the error diagnostic copied to my clipboard:


System.IO.IOException was unhandled
Message="Could not complete operation on some files and directories. See the Data property of the exception for more details."
Source="Microsoft.VisualBasic"
StackTrace:
at Microsoft.VisualBasic.FileIO.FileSystem.FxCopyOrMoveDirectory(CopyOrMove operation, String sourceDirectoryPath, String targetDirectoryPath, Boolean overwrite)
at Microsoft.VisualBasic.MyServices.FileSystemProxy.CopyDirectory(String sourceDirectoryName, String destinationDirectoryName)
at WindowsApplication1.Form1.Button2_Click(Object sender, EventArgs e) in C:\Users\ROG-Onafets\Documents\Visual Studio 2008\Projects\WindowsApplication3\WindowsApplication3\Form1.vb:line 23
at System.Windows.Forms.Control.onclick(EventArgs e)
at System.Windows.Forms.Button.onmouseup(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
at System.Windows.Forms.Nativewindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


Hope That helps lol...

This is VB 2008 BTW

Cheers




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users