I want to allow ASP.NET site users access to files on the IIS server.

Asked 2 years ago, Updated 2 years ago, 50 views

File upload control is pasted to ASP.NET web page.
There is a mechanism for saving to a fixed-name file on an IIS server.
Also, if there is a file saved in the previous operation, we have already done the coding to delete it in advance.

I'm guessing
on Web.Config.Config Were <identity impersonate○○○"true" userName="="password="XXXXXX"/> allowed access to those files on the IIS server?It is speculated that
(Certainly, when I commented out this part in WebConfig, I got a denial of access error.)

[Question]
The Windows account password for the IIS server has been changed.
It is not very desirable to change this part of WebConfig whenever the password is changed, so if there are any other measures, could you please introduce them to me?
ASP.NET 4.0 Windows Server 2008R2.

[Error even when adding access rights to folder]
Reference <
Enter a description of the image here
Reference <
Enter a description of the image here

asp.net

2022-09-29 22:12

1 Answers

The ASP.NET application runs as an application pool user (IIS AppPool/(AppPool name) ), so you can access the folder you want to access without impersonating this user or the IIS_USERS group.

Alternatively, you will not need to change the password one by one unless you create a user who is trying to log in to the server or if you do not specify a password expiration date.


2022-09-29 22:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.