Win7搞笑WCF
今兒為ASP.NET MVC添加服務引用,本機一切順利,可到了同事的機器上就報錯:
無法識別的元素“extendedProtectionPolicy”。
faint!這是啥玩意,沒見過?可明明我的機器上沒什么問題啊。還好信google得永生,找到官方WCF組的相關解釋如下:
Thank you for contacting us with your question.
Windows 7 has an additional security feature called Extended Protection. When you create an app.config for a client from the Windows 7 service, the tag "extendedProtectionPolicy" will be present in the app.config. When deploying the client to versions of Windows prior to Windows 7, this tag will not be valid. This is a known issue. This tag is not actually used by the client, so simply remove the tag. We will try to update future versions of .Net 3.5 to not include this tag in the generated app.config.
Thanks,
WCF Team
由 Microsoft 在 2009/7/16 10:11 發送
真是讓人啼笑皆非!
刪除如上圖所示節點后世界便安靜了。
轉載于:https://www.cnblogs.com/024hi/archive/2009/08/24/1553006.html
總結
- 上一篇: 用java程序将GBK字符转成UTF-8
- 下一篇: 最近一段时间很失望