求解:Win2000到底支不支持System.EnterpriseServices.ServiceConfig?

zhengyun_ustc 2005-03-16 01:06:52
有的地方写System.EnterpriseServices可以在WinXPSP2和Win2003上使用,谁知道Win2000是否可以使用?

我在WinXP Pro上和Win2000上都无法运行下面语句:
sc = new System.EnterpriseServices.ServiceConfig();

总是得到
ex.Message "当前平台上不支持“ServiceConfig”。" string
的错误。
...全文
167 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhengyun_ustc 2005-03-16
  • 打赏
  • 举报
回复
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
zhengyun_ustc 2005-03-16
  • 打赏
  • 举报
回复
[_NET]如何让Win2000和XP SP1支持System.EnterpriseServices(未验证)
有的地方写System.EnterpriseServices可以在WinXPSP2和Win2003上使用,谁知道Win2000是否可以使用?

我在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)



Filename File Size Download at 56k Download at 128k Download at 0.5Mb Download
Windows2000-KB828741-x86-ENU.EXE 4.46 Mb 24 m 47 s 10 m 57 s 2 m 40 s
WindowsXP-KB828741-x86-ENU.EXE 3.08 Mb 17 m 7 s 7 m 34 s 110 s



zhengyun_ustc 2005-03-16
  • 打赏
  • 举报
回复
http://www.rm.com/Support/GeneralDownload.asp?cref=DWN222592&nav=0
可以下载这两个Hotfix
zhengyun_ustc 2005-03-16
  • 打赏
  • 举报
回复
对于想在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 :)

或者参考:
http://www.alexthissen.nl/Weblog/PermaLink.aspx?guid=f6d61461-d336-40b0-9f4d-51eab6650f27
saucer 2005-03-16
  • 打赏
  • 举报
回复
no, according to Don Box, see his blog on 2004/7/12, or see

http://blogs.msdn.com/florinlazar/archive/2004/07/24/194199.aspx

you have to resort to ServicedComponent

110,561

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧