Win7搞笑WCF
今兒為ASP.NET MVC添加服務(wù)引用,本機(jī)一切順利,可到了同事的機(jī)器上就報(bào)錯(cuò):
無(wú)法識(shí)別的元素“extendedProtectionPolicy”。
faint!這是啥玩意,沒(méi)見(jiàn)過(guò)?可明明我的機(jī)器上沒(méi)什么問(wèn)題啊。還好信google得永生,找到官方WCF組的相關(guān)解釋如下:
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 發(fā)送
真是讓人啼笑皆非!
刪除如上圖所示節(jié)點(diǎn)后世界便安靜了。
轉(zhuǎn)載于:https://www.cnblogs.com/024hi/archive/2009/08/24/1553006.html
總結(jié)
- 上一篇: 用java程序将GBK字符转成UTF-8
- 下一篇: 【原创】C++变量作用域(三)