scatman
scatman

Reputation: 14555

Directory.CreateDirectory Exception

i am using Directory.CreateDirectory("\\\\MyShared\\Pics\\NewFolder") to create a new folder in the directory \\MyShared\Pics and i am getting an exception

Access to the path '\\MyShared\Pics\NewFolder' is denied.

i gave full control permission to Everyone for the shared folder '\MyShared'.
and i have also added <identity impersonate="true"/> in the Web.config

Note that Directory.Exists("\\\\MyShared\\Pics") returns true;

what am i missing?

Upvotes: 2

Views: 1789

Answers (1)

Ghyath Serhal
Ghyath Serhal

Reputation: 7632

Check the below settings
Go to properties --> Sharing --> Advanced Sharing --> Permissions

Upvotes: 1

Related Questions