Error - 401 Unauthorized when calling SharePoint webservice RRS feed

  • Question

  • The related details are listed as follows:

    With “Domain” is work in previous UAT environment. And now we can’t (we need to remove the “Domain” in “NetworkCreadential“ method).
    With “Domain” is work in PDN environment.
    “DefaultNetworkCredentials” or “DefaultCredentials” or "System.Net.CredentialCache.DefaultCredentials" is doesn’t work in UAT environment (Throw Error: The request failed with HTTP status 401: Unauthorized).

    I have tried restarting both IIS and the application pool but this does not help.
    IIS Setting:

    Anonymous Authentication is Enabled
    Windows Authentication is Enabled
    Authorization Rules is set up to Allow All Users
    In the IIS log I can see the following:
    2020-07-08 08:05:09 POST /_vti_bin/Lists.asmx - 80 0#.w|asia2\xxxx Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.36543) 200 0 0 62
    2020-07-08 08:06:19 GET /sites/intranet/TC/_vti_bin/Lists.asmx - 80 - Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.1;+WOW64;+Trident/5.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+InfoPath.3;+.NET4.0C;+.NET4.0E) 401 1 2148074254 0

    • Moved by Dave PatrickMVP Monday, July 20, 2020 12:06 PM looking for forum
    Monday, July 20, 2020 7:29 AM