有的地方写system.enterpriseservices可以在winxpsp2和win2003上使用,
我们可以让win2000和winxpsp1上也可以使用。
引子:
我在winxp pro上和win2000上都无法运行下面语句:
sc = new system.enterpriseservices.serviceconfig();
总是得到
ex.message "当前平台上不支持“serviceconfig”。" string
的错误。
解决办法:
对于想在xpsp1上使用system.enterpriseservices.serviceconfig,可以:
this feature works with windows server 2003 and windows xp sp2, officially.
but, there is a tweak to get it working before xp sp2: hotfix 828741.
you won't see any single word about swc mentioned there, but believe me,
with this hotfix all things are good :)
参考:
services without components works on xp without sp2
或者:
databases, msmq, [you name a resource manager] and services without components
hotfix的下载地址:
download(
url:
<a href="http://cert.swjtu.edu.cn/soft/windows_2000/windows2000-kb828741-x86-chs.exe">http://cert.swjtu.edu.cn/soft/windows_2000/windows2000-kb828741-x86-chs.exe</a>
<a href="http://cert.swjtu.edu.cn/soft/windows_xp/windowsxp-kb828741-x86-chs.exe">http://cert.swjtu.edu.cn/soft/windows_xp/windowsxp-kb828741-x86-chs.exe</a>