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 发送
真是让人啼笑皆非!
删除如上图所示节点后世界便安静了。
![](http://pic002.cnblogs.com/img/024hi/200812/2008121309355434.png)
作者:紫色永恒
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利