Reputation: 1195
when i want to access to a specific directory i catch an exception with this message:
Error While Listing Directories: Access to the path 'E:\Folder1' is denied.
how can i correct this problem?
i add aspnet windows account to Administrators Group but still this problem accures... please help... :)
Upvotes: 0
Views: 119
Reputation: 4936
give "Network Service" account the read access for folder 'E\Folder1'
Upvotes: 0
Reputation: 2524
it is not good practice to add asp.net to administrators for security reasons. As i know asp.net running NETWORK_SERVICE so just add enough privileges for this user in properties of your folder
Upvotes: 1
Reputation: 115538
The E:\folder sounds like it is a mapped directory from another machine. You'll have to give it access to the other machine to do so.
Upvotes: 2