Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
shorterxp

slow logon bug caused by .NET Framework NGEN - how to fix?

Recommended Posts

Is anyone familiar with this bug and if so, how do you approach it?

For anyone interested: the bug occurs when one installs .NET framework 4.0 on clean XP SP3. Apps at log on are delayed for 2minutes on the first reboot after installing 4.0 and occurs everyboot thereafter until 4.0 is otherwise uninstalled).

In a pre-made image of XP, available on the web, there is described a feature called "F4SBF Patch v2.0" which supposedly fixes this.

Quote

F4SBF Patch v2.0: Fixes the Windows XP slow boot bug which is caused by the “Microsoft .NET Framework NGEN v4.0.30319″ Service.

I don't want to link to the page due to forum policy.

I'm curious what this update entails.
 

 

References

https://rejzor.wordpress.com/slow-windows-xp-startup-fix/

https://social.msdn.microsoft.com/Forums/vstudio/en-US/cb75c4dc-e0af-4b22-85b2-c2c1b08bfea1/why-does-net-framework-4-client-profile-slow-down-boot-time-network-creation

Edited by shorterxp

Share this post


Link to post
Share on other sites

Update: I managed to track down the patch, here is the code that supposedly fixes the bug. Not tried it yet.

' [ MS .NET Framework 4 - WinXP Slow Boot Fix v3.1 ]
' This Script will fix silently in the background a Microsoft .NET Framework 4 bug that causes a slow Windows XP boot up.
' This Microsoft .NET Framework 4 bug can occur, for example when reinstall Microsoft .NET Framework 4 or when installing new Microsoft .NET Framework 4 Updates.

Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

ExeFile = objShell.ExpandEnvironmentStrings("%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe")
  If (objFSO.FileExists(ExeFile)) Then
    objShell.Run Chr(34) & ExeFile & Chr(34) & "eqi", 0, false
  End If

WScript.Quit

It's a .vbs script.

Edited by shorterxp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×