如何让Win2000和XP SP1支持System.EnterpriseServices(XP已验证)

有的地方写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( 
http://www.rm.com/Support/GeneralDownload.asp?cref=DWN222592&nav=0
 

URL:

http://cert.swjtu.edu.cn/soft/windows_2000/Windows2000-KB828741-x86-CHS.EXE

http://cert.swjtu.edu.cn/soft/windows_xp/WindowsXP-KB828741-x86-CHS.EXE

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值