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

arrow1.gifMicrosoft 在 2009/7/16 10:11 发送

真是让人啼笑皆非!

image

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

转载于:https://www.cnblogs.com/024hi/archive/2009/08/24/1553006.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值