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 发送

真是让人啼笑皆非!

image

删除如上图所示节点后世界便安静了。

posted @ 2009-08-24 16:44  紫色永恒  阅读(631)  评论(0编辑  收藏  举报