天天看點

HTTP request is unauthorized with client authentication scheme 'Anonymous'.

當使用VS2008 作為client call sharepoint的service(WCF)的時候顯示異常:

我的解決方法:

1,使用http的endpoint:

<security mode="TransportCredentialOnly">

2,使用https的endpoint:

<security mode="Transport">

粘貼出client端的app.config

代碼

client端的代碼如下:

本文轉自軒脈刃部落格園部落格,原文連結:http://www.cnblogs.com/yjf512/archive/2010/06/29/1767544.html,如需轉載請自行聯系原作者

繼續閱讀