UnauthorizedAccessException
hi,
I've been trying some C# ASP.NET examples from the beginning C# book from wrox pg 783, and on one of my computers I keep getting a System.UnauthorizedAccessException when it tries to access a file.
FileStream file = new FileStream(filepath, FileMode.Open);
This code works fine on another computer. Both computers have identical installations of visual studio net on XP professional. The one that works has McAffee and the one that doesn't has Norton antivirus. I shutoff the script blocking and everything else for Norton and the same exception occurs. I've played with everything I could find in the control panel on security and even added a permission set to the assembly that should allow read/write permission but nothing works. Any suggestions?
thanks,
thad213
|