Click to See Complete Forum and Search --> : Unhandled exception has occured...access to patch C:\... denied


dejan1
May 3rd, 2008, 07:59 AM
I'm trying to save a file to my computer. It gives me this error message

Unhandled exception has occured in your applications. If you click continue, the application will ingore this error and attempt to continue. If you click Quit the application will close

Access to the path C:\Users\me\Desktop\folder1 is denied


any ideas?

tis707
May 3rd, 2008, 08:07 AM
System.IO.File.Move(@"c:\try1.txt",Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory ) + @"\" + "yay.txt");

dejan1
May 3rd, 2008, 08:44 AM
No luck...still the same error message. I've installed all of the necessary things for the .net framework...any other ideas?

Shuja Ali
May 3rd, 2008, 01:38 PM
The error message clearly states that the application does not have access to the specific folder? What kind of application are you developing and what is the code?

Have you checked if the file is in use by any other program?