一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

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

时间:2022-07-02 12:13:53 编辑:袖梨 来源:一聚教程网

 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

热门栏目