Access to path denied

A

ats@jbex

I have a delete button in a gridview that displays a list of files. The ser
can click on the filename to view it or the delete button to delete it.
However I get teh following error when the delete button is clicked:

Access to the path 'E:\Web\Secure\reports\foldername\filename' is denied.

What do I need to do to allow teh files to be deleted as and when required?

TIA
--
ats@jbex

Those who died are justified, for wearing the badge, they're the chosen
whites
You justify those that died by wearing the badge, they're the chosen whites

Rage Against The Machine - Killing In The Name
 
K

kimiraikkonen

I have a delete button in a gridview that displays a list of files. The ser
can click on the filename to view it or the delete button to delete it.
However I get teh following error when the delete button is clicked:

Access to the path 'E:\Web\Secure\reports\foldername\filename' is denied.

What do I need to do to allow teh files to be deleted as and when required?

TIA
--
ats@jbex

Those who died are justified, for wearing the badge, they're the chosen
whites
You justify those that died by wearing the badge, they're the chosen whites

Rage Against The Machine - Killing In The Name

It's likely that you need to take the ownership of folder. See this:

http://support.microsoft.com/kb/810881/en-us

Hope this helps,

Onur Güzel
 
A

ats@jbex

It's likely that you need to take the ownership of folder. See this:

http://support.microsoft.com/kb/810881/en-us

Hope this helps,

Onur Güzel

Thanks for the information. However, it idn't work :-( I will keep digging
around.
--
ats@jbex

But I learned to burn that bridge and delete
Those who compete...at a level that's obsolete
Instead I warm my hands upon the flames of the flag
As I recall our downfall
And the business that burned us all
See through the news and the views that twist reality

Rage Against The Machine - Bombtrack
 
M

Mr. Arnold

ats@jbex said:
I have a delete button in a gridview that displays a list of files. The ser
can click on the filename to view it or the delete button to delete it.
However I get teh following error when the delete button is clicked:

Access to the path 'E:\Web\Secure\reports\foldername\filename' is denied.

What do I need to do to allow teh files to be deleted as and when required?

TIA

You make sure that the user account the program is running under has the
permissions to delete on the folder. That would most likely mean for you
in your case that the NTFS Everyone group account is the the folder with
the proper permissions. Or it could be that the file is still in
use/opened at the time of the deletion, and the O/S is not going to
allow it.
 
A

ats@jbex

You make sure that the user account the program is running under has the
permissions to delete on the folder. That would most likely mean for you
in your case that the NTFS Everyone group account is the the folder with
the proper permissions. Or it could be that the file is still in
use/opened at the time of the deletion, and the O/S is not going to
allow it.

It was permissions. I have now solved the proble. Thanks to all for your
input.
--
ats@jbex

Every year is the same
And I feel it again,
I'm a loser - no chance to win

The Who - I'm One
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top