哈哈 成啦 为Web Service客户端认证设定安全信任状

作者:袖梨 2022-07-02
 Sreedhar Koganti [@hotmail.com]
Is 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 you are implementing like anonymous,basic,..
(2)Are you able to browse web service from IE from remote machine
I have problem with similar eroor,may be going through this problem will
give you better idea on your problem
--------------------------------------------------
PROBLEM:
2 web sites hosted on a Windows 2000 machine. The default website has an
ASPX
WebForms page that calls into 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 is 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 that 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

相关文章

精彩推荐