Hi,
I'm a new here, so excuse me if the board is not good for my topic. But I have a big problem and try to find help in every possible way:(. I create a silly simple application in my home in Visual Studio 2008, which serve to interating in Outlook Inbox folder and moved a mail items which passed a few conditions to subfolder named "Archive". On my home computer everythinks works fine, but when I run application on target machine in work, I get an error (exception), and I really don't know what to do:(. On target computer I have installed framework as the same version like I used on my home computer, and after that I read on google that I need: Office 2007 Primary Interop Assemblies, so I installed it too (I can see this in C:\Windows\assembly\ so I think that they are registered) but even now I get the same exception:(. I heart something that when the Oulook 2007 work with Exchange server in Domain, I would need to install this Office Interop Assemblies on serwer, but....how? My company network is large....server is out of my country...I don't have acces there...and second think that would be non logical....VBA scripts can be fired without any problems on local computer with Outlook 2007 and C# application which only use a data from local inbox account must have some biggest access? It's weird for me, please help me becouse I need it to my work, and completely don't know what to do:(.
Below I write exception which I get:
Unhandled Exception: System.InvalidCastException: Unable to cast COM object of type 'System.__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 '{00063034-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported <Exception from HRESULT: 0x800004002 <E_NOINTERFACE>>
Sory for my english, I'm just learning, and please for any advice or tip, I would be very very very gratefuly
Greets
Micheal