Expression Web/STUDIO 2 crashes on setup - “Exception has been thrown by the target of an invocation.Cannot convert string 'pack://application…”

Yes, it’s a long title for a blog, but I’ve got to differentiate the types of setup crashes we have been seeing lately. This one I’ve seen affecting Expression Web 2 and only with computers that have Office 2007 installed on the same machine. Here’s a run down of the situation:

When installing Expression Web 2 the install will crash with the following error:

“Exception has been thrown by the target of an invocation.Cannot convert string 'pack://application:,,,/XSetupUI;component/Resources/Icons/Setup.ico' in attribute 'Icon' to object of type 'System.Windows.Media.ImageSource'. No imaging component suitable to complete this operation was found. Error at object 'XSetupUI_InitializationWindow' in markup file 'XSetupUI;component/initializationwindow.xaml'”

followed by:

clip_image002

The log file for this error is going to be pretty short. It will contain the exception mentioned above.

The key to solving this error is this line in the exception:

“No imaging component suitable to complete this operation was found.”

Debugging this problem down to the inner exception reveals the exception type to be System.Runtime.InteropServices.COMException and HRESULT 0x88982F50 or WINCODEC_ERR_COMPONENTNOTFOUND.

The fact that an imaging component can’t be found and the HRESULT points to a missing WINCODEC points to this being a problem with the Windows Imaging Component (WIC), or in this case a lack thereof.

To resolve this issue on Windows XP SP2 and Windows 2003 machines, do the following:

1. Download the Windows Imaging Component from here 

Or if you need the full URL it is:

https://www.microsoft.com/Downloads/details.aspx?FamilyID=8e011506-6307-445b-b950-215def45ddd8&displaylang=en

2. On that page you need to click the Continue button to validate your copy of Windows.

3. On English operating systems, the file you want to download is “wic_x86_enu.exe” – the others are localized versions of WIC.

4. Run the install for this file and reboot the machine if the install calls for a reboot, otherwise a reboot is not necessary. Afterward, you should  be able to run the install of Expression Studio 2 or Expression Web 2 with no problem.

If you’re seeing this problem on a Windows Vista or Windows 7 machine, try uninstalling and reinstalling the version of the .NET Framework 3.5. On Windows Vista you can uninstall Framework 3.5 from “Programs and Features” in the Control Panel.

image

On Windows 7, to remove and reinstall Framework 3.5 you will need to go to the Control Panel, click “Turn Windows Features On or Off” on the left of the page and in the “Turn Windows Features On or Off” dialog, click to clear the checkbox next to Microsoft .NET Framework 3.5.1 and click OK. After doing this, a reboot may be required.

To reinstall, open the same Window and click the checkbox to restore the blue square and click OK. This will begin the install process.

 

- Will Buffington