惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
Engineering at Meta
Engineering at Meta
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
罗磊的独立博客
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX

博客园 - 光阴四溅

The request was aborted: Could not create SSL/TLS secure channel. RESTful WCF returns 400 Bad Request and more 用WIX做MSI包 再见美罗 溜冰 Use ILDASM.exe as an external tool in your VS2008 - 光阴四溅 一个英语在线小词典 -- 使用WPF开发 Long Paths in .NET, Part 2 of 3 [Kim Hamilton][译] Long Paths in .NET, Part 1 of 3 [Kim Hamilton][译] Have a break... You call it love 上火了 上火了 一个VARCHAR和一个NVARCHAR相加 "Atlas" July Community Technology Preview Released -- 安装时出现String cannot have zero length错误 DTS--在变量或是在临时表和表变量中使用Input Global Variables ms真是越来越搞了 当在一个xml doc里面使用一个很大xml doc作为attribute时sp_xml_preparedocument返回Unspecified error 莲花 半夜里在网络上游荡
Gets 403 when calling WCF Service in intranet
光阴四溅 · 2011-12-12 · via 博客园 - 光阴四溅

I got following error message when trying to call a WCF service which is deployed in the intranet from my web site.

System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Negotiate'. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   --- End of inner exception stack trace ---

However calling it works just fine in my console application. Then I guess the 403 may from the proxy server, instead of the WCF service, because I configured to use proxy in my web site. So I disabled the proxy by adding following to the binding configuration

useDefaultWebProxy="true"

Everything works fine…