locked
WES7 Image Configuration Editor, Add Applicable Updates Fails RRS feed

  • Question

  • When trying to add applicable updates to an answer file that I imported using WEDU but I receive the error:

    Windows Embedded Standard 7 - Image Configuration Editor execution failed.

    Details: The given key was not present in the dictionary.

    The log file shows:

    08:11 : 
    08:11 : User Name:              Robin
    Machine Name:           ROBINS-LAPTOP
    Processor Architecture: amd64
    Domain Name:            ROBINS-LAPTOP
    CLR Version:            2.0.50727.6407
    OS Version:             Microsoft Windows NT 6.2.9200.0
    Current Directory:      C:\Program Files (x86)\Windows Embedded Standard 7\Tools\Image Configuration Editor
    Command Line Parameters: "C:\Program Files (x86)\Windows Embedded Standard 7\Tools\Image Configuration Editor\ice.exe" 
    Physical Memory for this process: 135258112
    Bitness for this process: 32-bit running under WOW64
    File Version Information
    C:\Program Files (x86)\Windows Embedded Standard 7\Tools\Image Configuration Editor
            DSIMsgs.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            EmbeddedAddDriverAPI.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            EmbeddedDriverSetupLib.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            EmbeddedDSI.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            EmbeddedUtil.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            Microsoft.Embedded.Command.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.Common.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.ComponentPlatformImplementation.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            Microsoft.Embedded.ComponentPlatformInterface.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.Compression.cab.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.Compression.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.Compression.zip.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.Controls.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.DSI.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            Microsoft.Embedded.PDAnalyzer.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.PmqParser.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            Microsoft.Embedded.Serializer.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.WindowsInstaller.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            Microsoft.Embedded.WindowsInstaller.Package.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     msil
            PEImports.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            PidGenX.dll     Microsoft Corporation     6.0.5469.139 (winmain(wmbla).081105-1806)     x86
            PmqParser.dll     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            sqmapi.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            ice.exe     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            ImportPackage.exe     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            PkgScn.exe     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
            Tap.exe     Microsoft Corporation     1.1.0222.0 (win7sp1_rtm_embedded.110214-1900)     x86
    
    C:\Program Files (x86)\Windows Embedded Standard 7\Tools\Servicing\
            compatprovider.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            dismcore.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            dismcoreps.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            dismprov.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            dpx.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            folderprovider.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            logprovider.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            msdelta.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            mspatcha.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            smiengine.dll     Microsoft Corporation     6.1.7601.17514 (win7sp1_rtm_embedded.110214-1900)     x86
            ssshim.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            wcp.dll     Microsoft Corporation     6.1.7601.17514 (win7sp1_rtm_embedded.110214-1900)     x86
            wdscore.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            wimprovider.dll     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            dism.exe     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            expand.exe     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
            pkgmgr.exe     Microsoft Corporation     6.1.7600.16385 (win7_rtm.090713-1255)     x86
    C:\WINDOWS\system32\wimgapi.dll     Microsoft Corporation     6.2.9200.16384 (win8_rtm.120725-1247)     x86
    C:\WINDOWS\System32\msxml6.dll     Microsoft Corporation     6.30.9200.16447     x86
    CLSID does not exist: {9F543912-5F3E-4230-AC46-3FD0B933F591}
    
    08:11 : 
    08:11 : 
    08:11 : Windows Embedded Standard 7 - Image Configuration Editor execution failed.
    08:11 : 
    08:11 : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
       at Microsoft.Embedded.ComponentPlatformInterface.DistributionShare.FindPackagesByType(PackageReleaseType type)
       at Microsoft.Embedded.MainForm.OnValidateAddApplicableUpdates()
    10:03 : 
    10:03 : Windows Embedded Standard 7 - Image Configuration Editor execution failed.
    10:03 : 
    10:03 : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
       at Microsoft.Embedded.ComponentPlatformInterface.DistributionShare.FindPackagesByType(PackageReleaseType type)
       at Microsoft.Embedded.MainForm.OnValidateAddApplicableUpdates()
    

    I have tried running the command:

    ImportPackage.exe /RebuildIndex <myDS>

    But although it successful, still shows up the error mentioned above...

    Has anyone got a solution or workaround?

    Friday, September 13, 2013 9:40 AM

All replies

  • I had the exact same issue and found out it was coming from two updates: KB2574819 and KB2836943.

    Here's how I fixed this:

    1- In ICE, delete the two KBs from your Answer File in the Update folder

    2- Close ICE and WEDU (not running in background, right-click the icon and Exit)

    3- Go to your DS folder, normally C:\Program Files\Windows Embedded Standard 7\your DS name, then go to Packages\Update

    4- Delete (or rename or copy elsewhere) x86~package_for_kb2574819~~~~6.1.1.7~1.0 and x86~package_for_kb2836943~~~~6.1.1.0~1.0

    5- Open ICE and your Answer File

    6- Manually add the two KBs from DS on the left pane to your Answer File on the middle pane

    7- Now the Add Applicable Updates should work without error

    I hope this works for you too!

    I'm going to deploy my new image to my target device right away to see if I encounter any further issue...

    I suggest you always take a backup of your Distribution Share folder before downloading any updates with the WEDU. By doing this you can still go back to the previous state and troubleshoot.

    Wednesday, September 18, 2013 3:16 PM
  • I tested the image on the Target Device and everything works fine.

    When I connect to Windows Update the two KBs don't show so I assume they are properly installed.

    Wednesday, September 18, 2013 8:24 PM
  • Thanks for posting the work around.

    I'm using the 64-bit WES7 DS (DS64SP1).  My failure is only related to KB2836943.

    There are two packages in the Update folder:

      amd64~package_for_kb2836943~~~~6.1.1.0~1.0

      amd64~package_for_kb2836943~~~~6.1.2.0~1.0

    After removing the older version of the updates (i.e. amd64~package_for_kb2836943~~~~6.1.1.0~1.0) and the "Add Applicable Updates" menu in the ICE starts working again.

    I don't think you need to do Step 6.  "Add Applicable Updates" should figure out the applicable updates for you.

    Regards,

    Frank

    Friday, September 20, 2013 7:45 PM
  • It's disapointing that the embedded-Team doesn't update the toolkit and manage this behavior in the second place (ICE). first place would be some other Management function in wedu.

    Windows Embedded Developer and Scripting Guy //Germany (http://www.wesnext.com)

    Friday, September 20, 2013 8:24 PM
  • After removing the older version of the updates (i.e. amd64~package_for_kb2836943~~~~6.1.1.0~1.0) and the "Add Applicable Updates" menu in the ICE starts working again.

    I don't think you need to do Step 6.  "Add Applicable Updates" should figure out the applicable updates for you.


    I tried different ways (trying to figure out the simplest one before posting) and just removing the older .CAB didn't work for me. I really had to do all the steps.

    But is that so unbelievable from Microsoft that things working for one will not work for others? ;)

    Monday, September 23, 2013 8:59 PM
  • I am sorry you were having this issue. This is caused by one update (the same KB number) has two versions. MS aware of this issue and a bug has been opened for investigation. The workaround is to check distribution share and identify the folders which have the same KB number but different version, remove the lower version folder. No need to rebuild distribution share index.
    Wednesday, October 30, 2013 12:45 AM
  • I'm seeing this issue as well, the difference is that I'm seeing it on archived DSs.  One that hasn't been updated since it was last used to build an IBW back in September, and one from 2012.   I thought it must be some interaction between the DS and the new answer file so I retrieved the answer file from September, stripped out the updates and re-ran the scan.  It failed too.  I can't re-create the IBW I made 3 months ago, even though I archived off all the pieces.

    This issue has been happening on and off for years now to many different folks (earliest reference I found is 2011) and we seem no closer to an actual solution from Microsoft.  I've seen DSs where manually adding each patch in one at a time in WEDU will work fine but batch adding them breaks.  We have this theory about duplicate fix IDs.  Is it too much to ask for the basic tools to do their job properly?

    I'm back to a naked SP1 DS with 370+ updates and I'm going to see if I can get anywhere with that.  So far I've wasted a day and a half on this.  This time.  Total, I've probably burned weeks in the last 2 years.

    Wednesday, December 11, 2013 8:58 PM