<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Class not registered</title><link>https://www.infopathdev.com:443/forums/thread/89385.aspx</link><pubDate>Wed, 01 May 2013 00:39:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:89385</guid><dc:creator>jwlnewsome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/89385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=89385</wfw:commentRss><description>Hi I&amp;#39;m currently running some code in C# below

Application infopath = new  Microsoft.Office.Interop.InfoPath.Application(); # falls over here
infopath.RegisterSolution(solution);

I get the following error

System.Runtime.InteropServices.COMException occurred
  Message=Retrieving the COM class factory for component with CLSID {8075635F-5146-11D5-A672-00B0D022E945} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Normally this is an architecture error but I&amp;#39;m compiling the program and targeting x86 which should negate this issue. 
I have checked the registry for the CLSID {8075635F-5146-11D5-A672-00B0D022E945} and it does not exist and seem to be the reference for InfoPath 2007. The reference i have in the registry is CLSID {8075735F-5146-11D5-A672-00B0D022E945} which would be 2010

I&amp;#39;m running windows 7 with office 2010. I thought this part of the code just called an instance of InfoPath but it seems to be referencing an older version that doesn&amp;#39;t exist. The reference to the application class is in the GAC and installed with office, so no security issues. 

Can someone explain to me where I&amp;#39;m going wrong and advise on how to fix this.

Thanks John</description></item></channel></rss>