Day 9815 在安装.Net Framework 4.0后,Windows XP启动时网络连接图标及相关组件启动缓慢

问题:

Windows XP系统启动后,(如果设置了本地连接/其它任何网络连接在任务栏上显示图标)网络连接图标半天也不出现,此时右键单击网上邻居,选择「属性」也没有反应,需要最短等待大约30秒(较新的机器)至10分钟(比较老的机器)才能正常使用网络功能。此时,如果使用「带网络连接的安全模式」启动,则不存在这个问题。

原因:

通常在安装了.Net Framework 4.0的Windows XP中出现,原因是安装该运行时后,系统会增加一个名为「Microsoft .NET Framework NGEN v4.0.30319_X86」的服务,该服务用于在系统启动时用最长10分钟的时间将高优先级的.Net程序编译为本机映像,以提高运行效率,但在较慢的机器上会严重拖慢启动速度(.Net的运行效率问题)。

解决:

  1. 直接禁用服务:启动服务管理器(开始-运行-services.msc,回车),找到「Microsoft .NET Framework NGEN v4.0.30319_X86」并将其启动方式修改为「手动」。
  2. 提前让NGEN干完活:以下方法来自此帖子,因为不如直接禁用服务方便,请有需要者自行翻译:

1) Run cmd.exe from Start > Run
2) Type cd\
3) Type cd Windows\Microsoft.NET\Framework\v2.0.50727
4) Type NGEN executequeueditems and press Enter
5) It will take about 10minutes depending upon system speed. After the process is complete, the following prompt will appear in the command prompt
C:\Windows\Microsoft.NET\Framework\v2.0.50727>
6) Type exit to close the command prompt.
After performing these steps, your computer will boot up at usual speed.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

 剩余字数 ( Characters available )

Your comment will be available after auditing.
您的评论将在通过审核后显示。

Please DO NOT add any links in your comment, otherwise it would be identified as SPAM automatically and never be audited.
请不要在评论中插入任何链接,否则将被自动归类为垃圾评论,且永远不会被提交给博主进行复审。

*