No announcement yet.

GAC Junction nasty problem and solution

  • Filter
  • Time
  • Show
Clear All
new posts

  • GAC Junction nasty problem and solution

    Hi everybody

    This could have been very time consuming to fix, luckily it only took 5 minutes

    - I used Norton Ghost Explorer to restore my boot drive
    - DOT NET 2.0 GAC_32 folder uses NTFS Junctions
    - Ghost restores these as *empty* folders

    this leads to this kind of error:

    Compiler Error Message: CS0006: Metadata file 'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServi ces\\System.EnterpriseSer vices.dll' could not be found

    By checking against another installation of Win XP Pro SP3 I noticed:

    C:\WINDOWS\assembly\GAC_32\System.EnterpriseServic es\

    should be a JUNCTION pointing to:

    C:\windows\WinSxS\x86_System.EnterpriseServices_b0 3f5f7f11d50a3a_2.0.0.0_x-ww_7d5f3790

    I deleted the empty folder and used sysinternals junction.exe to recreate the correct junction

    Now everything works OK

    The problem now is: how many other junctions has Norton Ghost broken?

    restore the entire Ghost Image to a volume
    use junction.exe to create a list of all junctions on the original volume and the broken volume
    use WinMerge to compare the two lists and create a script to remove the incorrect empty folders and replace them with junctions

    I will probably switch from Norton Ghost to Acronis TrueImage
    but can anybody confirm it handles junctions during Folder and File level restore

    (btw the reason I did a file level restore instead of block level was I was reorganizing the positions of the pagefile.sys and MFT)
    Last edited by AmazingFactory; 2nd November 2009, 12:42. Reason: update