File operation not permitted. Access to path is denied. error. I get null value in 'info' object.

Posted by Sp under Silverlight on 3/1/2011 | Points: 10 | Views : 8919 | Status : [Member] | Replies : 1
File operation not permitted. Access to path is denied. error. I get null value in 'info' object.

private void FileBrowse_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = true;
openFileDialog.Filter = _filters;
if (openFileDialog.ShowDialog().Value)
{
foreach (FileInfo info in openFileDialog.Files)
{
AddItem(info);
}
}
}




Responses

Posted by: Prabhakar on: 3/2/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Sp,

i think ur file folder is read only .. so that's the exception come in . .

Best Regard's
Prabhakar

Sp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response