c# - Access to Path "something" is denied -
most of solutions here don't work.
i trying upload file, image, folder in server called images, when click button upload it, after passes imageupload.saveas(path)
exception "access path "any path here" denied, tried editing security tab of folder , gave permission network service
, tried giving permission iis apppool\defaultapppool
, still not working. enabled asp.net impersonation in iis manager other people said, still same error.
the default identity applicationpool runs in, applicationpoolidentity
, not network service
account.
you assign modify rights on folder applicationpoolidentity (look here), or can change identity of application pool different user permissions on uploads folder.
do take care when run applicationpool different user: make sure not give user more rights in absolutely needs.
Comments
Post a Comment