I have an ListAdded event handler in which I'm associating OOB Approval workflow if any list is created based on my custom list definition.
As soon as the list is created, SharePoint throws this error:
Sorry, something went wrong The specified program requires a new version of Windows. (Exception from HRESULT:0x8007047E)
But when I go and see, the list is created successfully and workflow is associated just fine!
The exact same code works just fine, if i add it as a feature receiver
Any help would be appreciated.