Home
%3CLINGO-SUB%20id%3D%22lingo-sub-311210%22%20slang%3D%22en-US%22%3ESystem.Net.HttpWebRequest%20401%20caused%20by%20LoopbackCheck%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-311210%22%20slang%3D%22en-US%22%3E%3CP%3ELoopbackCheck%20caused%20401%20only%20happens%20when%20you%20are%20browsing%26nbsp%3Ba%20local%20Web%20site%20using%3CSPAN%3E%26nbsp%3Bthe%20fully%20qualified%20domain%20name%20(FQDN)%20or%20a%20custom%20host%20header%20and%20the%20web%20site%20is%20using%20Integrated%20Authentication.%20S%3C%2FSPAN%3Eee%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F896861%2Fyou-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20KB%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3Efor%20reference.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20common%20to%20use%20System.Net.HttpWebRequest%20in%20a%20web%20application%20to%20connect%20to%20a%20web%20service%20and%20if%20the%26nbsp%3B%3CSPAN%3EHttpWebRequest%26nbsp%3Bis%20hitting%20local%20web%20service%20and%20conditions%20mentioned%20above%20met%2C%20LoopbackCheck%20will%20also%20cause%20401%20for%20the%26nbsp%3BSystem.Net.HttpWebRequest%20too.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20address%20LoopbackCheck%20caused%20401%20issue%2C%20please%20refer%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F896861%2Fyou-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethe%20KB%20above.%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-311210%22%20slang%3D%22en-US%22%3E%3CP%3ELoopbackCheck%20caused%20401%20only%20happens%20when%20you%20are%20browsing%26nbsp%3Ba%20local%20Web%20site%20using%3CSPAN%3E%26nbsp%3Bthe%20fully%20qualified%20domain%20name%20(FQDN)%20or%20a%20custom%20host%20header%20and%20the%20web%20site%20is%20using%20Integrated%20Authentication.%20S%3C%2FSPAN%3Eee%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F896861%2Fyou-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20KB%20%3C%2FA%3Efor%20reference.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20common%20to%20use%20System.Net.HttpWebRequest%20in%20a%20web%20application%20to%20connect%20to%20a%20web%20service%20and%20if%20the%26nbsp%3B%3CSPAN%3EHttpWebRequest%26nbsp%3Bis%20hitting%20local%20web%20service%20and%20conditions%20mentioned%20above%20met%2C%20LoopbackCheck%20will%20also%20cause%20401%20for%20the%26nbsp%3BSystem.Net.HttpWebRequest%20too.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ETo%20address%20LoopbackCheck%20caused%20401%20issue%2C%20please%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F896861%2Fyou-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethe%20KB%20above.%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-311210%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehuanchix%40microsoft.com%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

LoopbackCheck caused 401 only happens when you are browsing a local Web site using the fully qualified domain name (FQDN) or a custom host header and the web site is using Integrated Authentication. See this KB for reference.

 

It is common to use System.Net.HttpWebRequest in a web application to connect to a web service and if the HttpWebRequest is hitting local web service and conditions mentioned above met, LoopbackCheck will also cause 401 for the System.Net.HttpWebRequest too.

 

To address LoopbackCheck caused 401 issue, please refer to the KB above.