Application don't work on another machine
Hi,
I have a big problem with my application, yesterday I wrote a small app on my personal home computer. I use VS 2008, in the application I added a reference to COM object "Microsoft Outlook Object Library 12.0". This "application" is a silly few lines of code, which iterateru throw an mail items in Outlook 2007. On my home computer, everythinks works perfectlly, but today in the morning I was trying to run it on the target machine, and unfortunatelly I get a expception error, and I don't know what it is:(. On the target computer there isn't installed VS, but framework of course is (the same version as on my personal computer), I googled something and I installed something called: "Office 2007 Primary Interop Assemblies", becouse I thought that It could resolve the problem, but unfortunatelly, application still crush:(. Please help:(. Below I write an error message:
Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type "Sytem.__ComObject" to interface type "Microsoft.Office.Interop.Outlook.MailItem". This operation failed becouse the QueryInterface call on the COM component for the interface with IID: "000634034-0000-0000-C000-000000000046", failed due to the following error: No such interface supported <Exception from HRESULT: 0x80004002 <E_NOINTERFACE>>.