无法识别的元素“extendedProtectionPolicy”
来源:互联网 发布:pdf修改文字软件 编辑:程序博客网 时间:2024/05/10 15:58
在Windows7下建立的一个项目,在XP中打开后,更新WCF服务时爆出了错误:无法识别的元素“extendedProtectionPolicy”。通过网上搜索,错误原因如下:
当在 Windows 7 上用 VS2008 开发 WCF 3.5 客户端程序时,VS 将在自动生成的配置文件的 ***Binding/security/transport 节中插入
<extendedProtectionPolicy policyEnforcement="Never" />
如果将此程序在其他操作系统上启动时将报错:无法识别的元素“extendedProtectionPolicy” (Unrecognized element extendedProtectionPolicy)。
解决方法为:直接删除此节点。
网上找到的其它信息:
这是一个已知的问题,仅存在 Windows 7 系统上,似乎 Windows 7 对 .NET 3.5 的特殊扩展,但其他早期版本操作系统又不支持,下面是来自 WCF Team 的解释:
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
- 无法识别的元素“extendedProtectionPolicy”。
- 无法识别的元素“extendedProtectionPolicy”
- 无法识别的元素“extendedProtectionPolicy”
- 无法识别的元素“extendedProtectionPolicy” win7 windows2003 silverlight app.config ServiceReferences.ClientConfig
- 配置错误 无法识别的元素“providers”。
- 无法检索 的元数据,无法识别的元素provider
- 配置错误 无法识别的元素“providers”。(转)
- 无法识别的USB
- 解决 hybird 应用中重复获取 WebView,导致页面元素无法识别的问题
- 解决 hybird 应用中重复获取 WebView,导致页面元素无法识别的问题
- 解决 hybird 应用中重复获取 WebView,导致页面元素无法识别的问题
- 无法识别的属性“xmlns”
- 无法识别的配置节
- 无法识别的属性“xmlns"
- USB无法识别的解决办法
- 无法识别的属性“xmlns”
- 无法识别的属性“xmlns”。
- 无法识别的属性“targetFramework”
- 数据库:读取前几条数据
- java synchronized详解
- VC++6.0 程序使用XP风格样式
- Private strand flush not complete
- 页面漂浮广告代码
- 无法识别的元素“extendedProtectionPolicy”
- LMA与VMA
- android 中打 Log 的一些技巧
- 链表的三种构造方法
- FTP上传
- 模式匹配的类型测试不能识别List<’a>
- Windows下用C语言获取进程cpu使用率,内存使用,IO情况
- java nation
- 我的java思想010:对于频繁变动的事件,在事件处理的代码中,代码不能过长,不能包含太多的操作