安装 WindowsXP 更新后 WCF 服务错误

编程入门 行业动态 更新时间:2024-10-07 10:21:17
本文介绍了安装 WindowsXP 更新后 WCF 服务错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

您好,

今天在我开始处理我的应用程序之前,我更新了我的 WinXP.安装所有更新后,我的 WCF 服务停止工作.当我尝试在浏览器中打开 service.svc 文件时出现以下错误:

today before I start working on my application I updated my WinXP. After all updates have been installed my WCF service stop working. There is a following error when I try to open service.svc file in the browser:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: An error occurred creating the configuration section handler for system.serviceModel/bindings: Could not load type 'System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error: 


Line 131:       </behaviors>
Line 132:
Line 133:       <bindings>
Line 134:           <wsHttpBinding>
Line 135:               <binding name="MyWSHttpBinding" maxReceivedMessageSize="2147483647">

我的同事在更新之前尝试运行相同的服务,并且运行良好.安装更新后,他遇到了同样的问题.有人可以帮我吗?

The colleague of mine tried to run the same service before update and it works fine. He has the same problem after installing updates. Can someone please help me?

推荐答案

到目前为止,问题确实似乎来自更新 KB982168 并且仅在 2003 服务器上.Microsoft 支持人员怀疑 HttpTransportSecurity 构造函数中存在错误,该构造函数试图实例化 ExtendedProtectionPolicy 对象,但该类在 2003 服务器(或 XP 计算机)上的 system.dll 中不存在(您可以使用反射器检查).它确实存在于 2008 或 Vista 及更高版本的 DLL 中.如果问题得到确认,我想很快就会发布一个修补程序.同时建议不要安装更新.我会及时通知您.

So far, the problem indeed seems to come from the update KB982168 and only on 2003 servers. Microsoft support suspects a bug in the HttpTransportSecurity constructor that tries to instantiate a ExtendedProtectionPolicy object, but this class does not exist in system.dll on a 2003 server (or XP machines) (you can check with reflector). And it is indeed present on the DLL on a 2008 or Vista and above. If the problem is confirmed, I think there will be a hot fix released very soon. Meanwhile it is recommended to not install the update. I'll keep you informed.

这篇关于安装 WindowsXP 更新后 WCF 服务错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 20:53:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1142706.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   WindowsXP   WCF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!