Sreedhar koganti [@hotmail. com]
Are any one got System.Net.WebException:The request failed
With HTTP status 401:access Denied.
I created a Web service. And I tested with test page.
After I counume it in ASPX page[in the same machine] I got
The above error.
Is I am missing some thing, regaarding permissions.
Thansk
Sreedhar
Madhu [@microsoft. com]
This is permissions problem.
Can you please give me more info about this problem
(1) What is IIS security your are implementing like Anonymous,basic,..
(2) Are your able to the Browse Web service from the IE from remote machine
I have problem with similar eroor,may is going through this problem would
Give you better idea on your problem
--------------------------------------------------
PROBLEM:
2 Web sites hosted on a Windows machine. The default website has an
ASPX
WebForms page that calls to an ASMX Web Service. The second website is
Mapped to a port other than 80. The WebForms page executes without a
Problem
If the call to the Web services are commented out. The Web Service executes
Without a problem if we browse to the ASMX file directly. When the Web
Service IIS application has anonymous access disabled then the following
Error
is reported back to the WebForms page which tries to access it?
The request failed with HTTP status 401:access Denied.
Description:an unhandled exception occurred during the execution of the
Current Web request. Please review the stack trace for more information
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.