Got the following errors when trying to add a new InfoPath form:
Long error but gets down to:
InvalidCastException, Exception Message: Unable to cast COM object of type 'HTMLCHECKERLib.XMLPProcessorClass' to interface type 'HTMLCHECKERLib.IHTMLtoXHTML'. ' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED
Run regsvr 32 to register the following DLL
regsvr32 “C:\Program Files\Common Files\Microsoft Shared\OFFICE14\htmlchkr.dll”
Thanks to http://www.sharepointed.com/ for helping me solve this one.