ICANN认证国际域名顶级注册机构
网站建设,域名注册,空间租用,软件销售,广告设计 域名注册,空间租用, 网站建设,东莞网页设计,域名注册,网站推广,网站开发,网页设计 网站推广,,百度推广,新浪推广,雅虎推广,网易推广 标志设计,画册设计,包装设计,VI策划,企业形象顾问 连邦软件加盟店,提供销遥行,管家婆,速达,用友ERP,诺顿等软件报价及销售 建站必读 腾达网络,上网帮助中心, 腾达为东莞等地,提供网站建设,网站推广,广告设计,软件销售等优质服务!
建站必读


 
 
当前位置:首页 -> 建站必读 -> .NET技术
哈哈 成啦 为Web Service客户端认证设定安全信任状
 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

about

the error and where it originated in the code.



Exception Details: System.Net.WebException: The request failed with HTTP

status

401: Access Denied.



Source Error:



An unhandled exception was generated during the execution of the current web

request. Information regarding the origin and location of the exception can

be

identified using the exception stack trace below.     



Stack Trace:



[WebException: The request failed with HTTP status 401: Access Denied.]

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient

Mes

ssage message, WebResponse response, Stream responseStream) +1174

System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String

methodName,

Object[] parameters) +216 TestClients.ws.Service1.Test1() in

d:worksetsvswebcachedotnettest1_8080 estclientsweb

referencesws
eference.cs:37 TestClients.WebForm1.btnTest1_Click(Object

sender, EventArgs e) in

d:worksetsvswebcachedotnettest1_8080 estclientswebform1.aspx.cs:51

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo

stB

BackEvent(String eventArgument) +58

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,

String eventArgument) +18

System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

System.Web.UI.Page.ProcessRequestMain() +1263    



<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

<>



RESOLUTION:



Proxy classes created using the Web Services Description Language (WSDL)

tool

(Wsdl.exe), or created when adding a Web reference in Visual Studio.NET,

derive from the SoapHttpClientProtocol class. These classes have a

Credentials

property, which can be used to get or set security credentials for Web

Service

client authentication.



To use the Credentials property, a Web Service client must create an

instance

of a class implementing the ICredentials i
 
 
本站关键词:
|东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间||东莞网络实名|东莞百度baidu推广|东莞google推广|东莞关键词推广|东莞网站推广策划|东莞域名申请|东莞主机申请|东莞空间申请|做网站|设计网站|东莞虚拟主机|东莞asp空间|
域名注册 | 虚拟主机 | 网站建设 | 网站推广 | 广告设计 | 帮助中心 | 软件中心 | 关于腾达
东莞市腾达信息工程有限公司      本站网络实名: 东莞网站建设
地址:东莞市新城市中心区第一国际B座610   邮编:523007
电话:0769-22026071 22026072 传真:0769-22026076 24小时服务热线:13712032014
© 2002~2005 腾达网络   版权所有