无法读取WMICompatibility值Registry.GetValue [英] Cannot read the WMICompatibility value with Registry.GetValue

查看:291
本文介绍了无法读取WMICompatibility值Registry.GetValue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个IIS7(Windows 2008的服务器),并要检查通过C#,如果启用了IIS6兼容性模式。 我做这个检查值

I have an IIS7 (Windows 2008 Server) and wants to check via C#, if the IIS6 Compatibility mode is enabled. I do this checking the value

HKEY_LOCAL_MACHINE\\Software\\Microsoft\\InetStp\\Components","WMICompatibility"

在一台服务器工作原理。在另一台服务器上,这并不正常工作(在两台服务器上安装了兼容模式。有什么能成为第二个服务器上的问题的原因。看来第二个服务器上,这Registry.GetValue找不到WMICompatibility。

On one server this works. On another server this doesn't work (. On both servers the Compatibility mode is installed. What could be the reason of the problem on the second server. It seems on the second server, that Registry.GetValue cannot find WMICompatibility.

推荐答案

我发现在IIS上的主题论坛

和它的反应之一提到这$ C $的CProject文章

如果希望提供你所需要的。

Should hopefully provide what you need.

这篇关于无法读取WMICompatibility值Registry.GetValue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆