简体   繁体   中英

Allow write permissions for ASP.NET Core API application

I am working on an ASP.Net Core 3.1 API application that downloads files. It will be saving those files to a folder outside the website. I know there will be an issue of allowing the process to write to the target directly. I found this post that talks about setting things up for.Net Framework on IIS7 ( IIS7 Permissions Overview - ApplicationPoolIdentity ) but I am deploying on IIS 8.5 and I am not able to find the user "IIS AppPool\DefaultAppPool".

Q1: So what exactly is the "IIS AppPool" part? Normally I am used to that being either the machine name or the domain name, but it is clearly neather since it is to be found on all machines.

SOLVED,.!!! I HAVE created a unique app pool for the app, let's call it 'upload-system'. I was going to ask how to enter it into the "Select User or Groups" and thought I should test it without quotes real quick... it worked,!!! I still want to know the answer to Q1, but I got the main problem working!!!!

The reason you cannot find the DefaultApppool is that your application pool may no longer have this application pool. If you want to give write permissions to the folder, you should try IIS AppPool\Application pool name. For example, your application pool name is Test. What you should assign to the folder is IIS AppPool\Test .

Find the application pool where your deployed application is located, and then assign this user permission to the folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM