c# - create directory on fly during application deployment or first request to application. -


i all, have been stuck in issue week now.i want directory created in root of project when application runs in iis.but since iis user account can't given full permission in root directory , access denied error while trying create directory.i tried find work around keeping images in app_data folder not approach per post enter link description here

i need create folder on fly when request comes application first time without getting access denied error.it ok if able create directory permission during deployment. best approach above problem solve, s.

you misunderstanding information in link. it's true browser shouldn't have access app_data folder, in case it's server, asp.net code this.

if scenario letting user upload , download files, , have sensitive files in app_data folder, create dedicated folder purpose instead let's /uploads.
create folder in project directly , deploy destination web server. give app pool account read/write permissions, , should it. minimize number of folders app pool account has write permissions to.

if create folder /wwwroot/uploads , give app pool account full permission uploads only, it's not necessary have full permissions on root level. app can create folders dynamically in /uploads folder.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -