Reputation: 14555
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
Reputation: 7632
Check the below settings
Go to properties --> Sharing --> Advanced Sharing --> Permissions
Upvotes: 1