Resolve directory access in ASP.NET

  • 2020-05-05 11:10:49
  • OfStack

Symptoms: from the ASP.NET application, you may receive the following error message when accessing a remotely secured resource,
Logon failure: unknown user name or wrong password.

Solution:
          1     changes the password of the ASPNET account to password on the Web server.
On the remote file server, change the password of the ASPNET account (if it is not created) to password.
          3     sets access to the appropriate directory for the ASPNET account on the remote file server.
          4     modify Web.config file in < system.web > Add:
in the configuration section                       < identity impersonate="true" userName="ASPNET" password="password" / >
The passwords at           5     can be set arbitrarily, but must remain the same.


Related articles: