This is generated code on a winform app's InitializeComponent() implementation (from the code-behind *.Designer.cs file).
This code works on Vista/7, but on XP it blows up at runtime.
I have a custom Icon added to the form. It was initially a png file. Suspecting that XP couldn't handle that format (the inner exception is something about serialization) I changed it to an ico file. Same result.
What gives?