今儿为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 发送
真是让人啼笑皆非!
删除如上图所示节点后世界便安静了。
本文介绍了解决ASP.NET MVC在添加服务引用时遇到的一个特定错误:“无法识别的元素“extendedProtectionPolicy””。此问题发生在从Windows 7创建的服务配置文件部署到早期版本的Windows时。文中提供了官方WCF团队的解释,并给出了简单的解决方案。
由 Microsoft 在 2009/7/16 10:11 发送

被折叠的 条评论
为什么被折叠?



