app pool account will only be used by application code trying to access the share. when you added the share, you should have specified the user/password to access the share. then set permissions:
Virtual directory on network share - HTTP Error 401.3 - Unauthorized
Hello
I'm trying to add a virtual directory in the Default Web Site on SERVER1 where the files are saved on a network share on SERVER2.
From what I've read, this should be possible but when trying to view the page, I am shown the 'HTTP Error 401.3 - Unauthorized' error message.
I have followed the steps in the MS Learn doc (https://learn.microsoft.com/en-us/iis/manage/configuring-security/application-pool-identities) and have created a domain user called 'RemoteIISUser' and ensure that user has permissions to both the network share itself as well as the files, via security on SERVER2 and ensured the Application Pool running in IIS on SERVER1 is running with the same 'RemoveIISUser' user.
If I use the 'Test Settings' button within Basic Settings, I am told both the Authentication and Authorization are valid.
I have also logged on to the IIS server as the RemoteIISUser and confirmed I am able to access the network folder/files.
Any pointers would be gratefully received.
Thanks in advance
Richard
Windows development Internet Information Services
3 answers
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2022-12-20T20:46:17.537+00:00 -
Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
2022-12-21T07:02:24.82+00:00 I think it may have something to do with the authentication method, are you using anonymous authentication? If so, you can try this method:
Go to Authentication -> Edit "Anonymous authentication"-> Select "Application pool identity"-> Restart IIS.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
-
Richard Foreman 1 Reputation point
2022-12-21T11:47:05.16+00:00 Go to Authentication -> Edit "Anonymous authentication"-> Select "Application pool identity"-> Restart IIS.