安装 WindowsXP 更新后 WCF 服务出现错误

发布于 2024-09-05 06:37:42 字数 978 浏览 4 评论 0原文

您好,

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

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">

我的同事尝试在更新之前运行相同的服务,并且工作正常。安装更新后他也遇到同样的问题。有人可以帮我吗?

Greetings,

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

梦亿 2024-09-12 06:37:42

到目前为止,问题确实似乎来自更新 KB982168,并且仅出现在 2003 年的服务器上。 Microsoft 支持人员怀疑 HttpTransportSecurity 构造函数中存在尝试实例化 ExtendedProtectionPolicy 对象的错误,但 2003 服务器(或 XP 计算机)上的 system.dll 中不存在此类(您可以使用 Reflector 检查)。它确实存在于 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.

梦里°也失望 2024-09-12 06:37:42

我只是想报告此问题的官方知识库文章已发布在以下位置:http:// /support.microsoft.com/kb/2262911

上述解决方法是正确的,并且与您在此知识库文章中找到的解决方法相同。

知识库文章中提供的补丁已经过验证,可以解决安装问题,并且对于生产环境来说是安全的。我们还将在知识库文章中发布 Fix-It 补丁,以无缝解决此问题,而无需执行解决方法步骤。鉴于我们已经确定了此问题的根本原因,之前导致安装失败的所有修补程序都将得到适当更新。

重要的是,WCF 应用程序必须畅通无阻,并且能够在所有计算机上成功安装 Windows 更新 KB # 982167 和/或 982168。如果您已卸载 Windows 更新,请按照知识库文章在您的计算机上获取此更新。

对于由此带来的不便,我们深表歉意。

谢谢,

艾丽卡
微软项目经理

I just wanted to report that the official KB article for this issue has been posted at the following location: http://support.microsoft.com/kb/2262911

The workaround outlined above is correct and is the same workaround that you will find in this KB article.

The patch provided in the KB article has been validated to resolve the installation issue as well as safe for production environments. We will also be publishing in the KB article a Fix-It patch to seamlessly resolve this issue without needing to go through the workaround steps. Given that we have identified the root cause of this issue, all previous hotfixes which cause the installation failure will be updated appropriately.

It is important that WCF applications are unblocked and able to successfully install Windows Update KB # 982167 and/or 982168 on all machines. If you have uninstalled the Windows Update, please follow the KB article to get this update on your machine.

Sorry for this inconvenience.

Thanks,

Erica
Microsoft Program Manager

摘星┃星的人 2024-09-12 06:37:42

该问题是由路径安装程序的行为不正确的组件引起的。该问题存在于多个修补程序中,可能会导致安装顺序不正确或跳过修补程序的安装。

以下是微软支持团队给出的解决此问题的热修复程序。

  • 安装 KB982168,这应该会重现该错误。
  • 注意%WINDIR%\ Microsoft.NET \ Framework \ v2.0.50727 \ system.dll的版本(应为2.0.50727.3053)
  • 下载KB975954修补程序:
    https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails。 aspx?DownloadID=26146
    您需要选择包裹
    对应于您的操作系统
    体系结构:NDP20SP2-KB975954-x86.exe (MSI)、NDP20SP2-KB975954-x64.exe (MSI)、NDP20SP2-KB975954-IA64.exe (MSI)
  • 为您的操作系统体系结构安装适当的修补程序。
  • 从提升的提示符运行以下命令行:
    msiexec /f {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F}
  • 检查 %WINDIR%\Microsoft.NET\Framework\v2.0.50727\system.dll 的版本(应该是 2.0.50727.4443)

我在测试服务器上安装了它并它解决了问题。

毫无疑问,这将很快集成到 Windows 更新中。

希望这有帮助。

The problem is caused by an incorrectly behaving component of the path installer.This is present in multiple hotfixes, and may cause an incorrect installation order or skipping installation of a patch.

Here is the hot fix to solve this issue given by Microsoft support team.

  • install KB982168, which should reproduce the error.
  • Note the version of %WINDIR%\Microsoft.NET\Framework\v2.0.50727\system.dll (should be 2.0.50727.3053)
  • download the KB975954 hotfix:
    https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26146
    You would need to pick the package
    corresponding to your OS
    architecture: NDP20SP2-KB975954-x86.exe (MSI), NDP20SP2-KB975954-x64.exe (MSI), NDP20SP2-KB975954-IA64.exe (MSI)
  • Install the appropriate hotfix for your OS architecture.
  • Run the following command line from an elevated prompt:
    msiexec /f {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F}
  • Check the version of %WINDIR%\Microsoft.NET\Framework\v2.0.50727\system.dll (Should be 2.0.50727.4443)

I installed this on a test server and it solved the problem.

No doubt that this will be soon integrated on windows update.

Hope this helps.

勿忘初心 2024-09-12 06:37:42

我通过卸载 KB976769v2 解决了该问题。

I fixed that issue by uninstalling KB976769v2.

孤君无依 2024-09-12 06:37:42

我已向 Microsoft 报告了该错误。我会等待技术支持的电话。

I have reported the error to Microsoft. I'll wait for the call from technical support.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文