[_NET]如何让Win2000和XP SP1支持System.EnterpriseServices(未验证)

news/2024/6/18 18:59:19

有的地方写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)

FilenameFile SizeDownload at 56kDownload at 128kDownload at 0.5MbDownload
Windows2000-KB828741-x86-ENU.EXE4.46 Mb 24 m 47 s 10 m 57 s 2 m 40 s Download
WindowsXP-KB828741-x86-ENU.EXE3.08 Mb 17 m 7 s 7 m 34 s 110 s Download

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




有的地方写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)

FilenameFile SizeDownload at 56kDownload at 128kDownload at 0.5MbDownload
Windows2000-KB828741-x86-ENU.EXE4.46 Mb 24 m 47 s 10 m 57 s 2 m 40 s Download
WindowsXP-KB828741-x86-ENU.EXE3.08 Mb 17 m 7 s 7 m 34 s 110 s Download

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





http://www.niftyadmin.cn/n/3649268.html

相关文章

摆动排序 II · Wiggle Sort II

链接: 题解: 1.先用partition函数,求得n/2的位置的排序 2.然后选取首尾指针(奇数选择1和length-1,偶数选择为1和length-2),进行swap交换 3.每次首指针每次2,尾指针每次-2 九章算…

使用Create React App v2和TypeScript

介绍 (Introduction) Create React App v2 introduced official TypeScript support, allowing JavaScript users to use TypeScript with the React front-end framework. TypeScript is a powerful tool that helps write safer, self-documenting code, allowing developers…

6个值得推荐的Android开源框架简介

1、volley 项目地址 https://github.com/smanikandan14/Volley-demo (1) JSON,图像等的异步下载; (2) 网络请求的排序(scheduling) (3) 网络请求的优先级处理 (4) 缓存 (5) 多级别取消请求 (6) 和Activity和生命周期…

谁说QTP不能多线程 - 当Python遇上QTP

谁说QTP不能多线程 - 当Python遇上QTP 作者:Wally Yu (微博:http://weibo.com/quicktest) 经常有人问我一个问题:QTP可以同时做多个项目的自动化吗?我每次都回答说“不行,QTP不支持多线程,VBS本身就不是…

验证手机号码工具类

/*** 验证手机号码&#xff08;支持国际格式&#xff0c;86135xxxx...&#xff08;中国内地&#xff09;&#xff0c;00852137xxxx...&#xff08;中国香港&#xff09;&#xff09;* param mobile 移动、联通、电信运营商的号码段*<p>移动的号段&#xff1a;134(0-8)、1…

Android中使用隐藏API图文解析

Android SDK的很多API是隐藏的&#xff0c;我无法直接使用。但是我们通过编译Android系统源码可以得到完整的API。编译Android系统源码后可以在out\target\common\obj\JAVA_LIBRARIES目录可以看到它的所有API。当然对于一般情况&#xff0c;out\target\common\obj\JAVA_LIBRARI…

QTP测试框架之_报表

QTP测试框架之_报表 作者&#xff1a;Wally Yu (微博&#xff1a;http://weibo.com/quicktest) 自己在开发QTP测试框架的时候一些对于报表的经验&#xff1a; Excel报表&#xff1a; 下载Report Manager:http://www.advancedqtp.com/knowl ... ut-reportermanager/ 修改…

git克隆github_如何使用Git和Github分叉,克隆和推送更改

git克隆github介绍 (Introduction) Github is an excellent resource for finding useful code. In order to contribute changes back to a project, you’ll need to make a local copy and then upload your changes. In this tutorial, you’ll fork and clone an existing…