while synchronizing error is coming

Status
Not open for further replies.
H

hemaneelagiri

hi

i am developing an application in that i have contacts. i am synchronizing

the data with my database to my outlook contacts.

i am using below code

_____________________________________

Microsoft.Office.Interop.Outlook.ContactItem contactItem= (Microsoft.Office.

Interop.Outlook.ContactItem)fldContacts.Items.Add(Microsoft.Office.Interop.

Outlook.OlItemType.olContactItem);

contactItem.CustomerID = ((int)objType).ToString() + "_" + dr["AddresseId"].

ToString().Trim();

contactItem.FirstName = dr["FirstName"].ToString();ontactItem.Gender =

Microsoft.Office.Interop.Outlook.OlGender.olMale;

contactItem.Email1Address = dt.Rows["CommValue"].ToString();

contactItem.Categories = contactItem.Categories + ";" + "my new";

contactItem.Save();

__________________________________

except one system it is working fine in all other systems.

and bellow erroe is coming in that system

"Unable to cast COM object of type 'System._ComObject' to interface type

'Microsoft.Office.Interop.Outlook._ContactItem'. This Operation failed

because the queryinterface call on the COM Component for the interface with

IID'{00063021-0000-0000-C000-000000000046}' failed due to the follwing error.

No such interface suported(Exception from HRESULT.0x80004002(E_NOINTERFACE)).

we are not able find why it si coming

please help


200908
 
K

Ken Slovak - [MVP - Outlook]

If it works everywhere but on one machine you're going to have to do

detective work to see what's different on that machine. Disable all addin

code, any synch software and check for dependencies and requirements for you

code. See if it runs then.

It's going to be a process of elimination.

"hemaneelagiri " <u54138@uwe> wrote in message

news:9aec86a34ae18@uwe...
> hi
> i am developing an application in that i have contacts. i am
> synchronizing
> the data with my database to my outlook contacts.
> i am using below code
> _____________________________________
> Microsoft.Office.Interop.Outlook.ContactItem contactItem=
> (Microsoft.Office.
> Interop.Outlook.ContactItem)fldContacts.Items.Add(Microsoft.Office.Interop.
> Outlook.OlItemType.olContactItem);

> contactItem.CustomerID = ((int)objType).ToString() + "_" +
> dr["AddresseId"].
> ToString().Trim();
> contactItem.FirstName = dr["FirstName"].ToString();ontactItem.Gender =
> Microsoft.Office.Interop.Outlook.OlGender.olMale;
> contactItem.Email1Address = dt.Rows["CommValue"].ToString();
> contactItem.Categories = contactItem.Categories + ";" + "my new";
> contactItem.Save();
> __________________________________

> except one system it is working fine in all other systems.
> and bellow erroe is coming in that system

> "Unable to cast COM object of type 'System._ComObject' to interface type
> 'Microsoft.Office.Interop.Outlook._ContactItem'. This Operation failed
> because the queryinterface call on the COM Component for the interface
> with
> IID'{00063021-0000-0000-C000-000000000046}' failed due to the follwing
> error.
> No such interface suported(Exception from
> HRESULT.0x80004002(E_NOINTERFACE)).
> "

> we are not able find why it si coming

> please help

> >
> 200908
>
 
H

hemaneelagiri

not only one miachine it is coming randomly.. after it came teh outlook is

not working and after system restarting it is working.. and code also working.
 
K

Ken Slovak - [MVP - Outlook]

Again, you're going to have to do the detective work on this. No one can

remotely debug an intermittent error or one that occurs on one or only a few

machines.

"hemaneelagiri " <u54138@uwe> wrote in message

news:9b112661c6e71@uwe...
> not only one miachine it is coming randomly.. after it came teh outlook is
> not working and after system restarting it is working.. and code also
> working.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
N Macro to move all recipients to CC while replying Outlook VBA and Custom Forms 0
G How to have domain client use owa server instead of exchange server while connect to network Using Outlook 1
broadbander Needing help with reply/reply all while keeping attachments and adding a new CC recipient. Outlook VBA and Custom Forms 5
N How to add Dear & mail receipts name while reply to that mail in outlook2007 Outlook VBA and Custom Forms 1
D Conflict warning while editing Exchange Server Administration 0
J Outlook 2010 seems to hang when left inactive for a while Using Outlook 1
C Change From address while sending a new mail Outlook VBA and Custom Forms 5
G "Delay Delivery" Email fails to send if opened while in Outbox Using Outlook 4
P Threat to being a spammer while sending automatic Emails through VBA Using Outlook 3
S Renaming while drag and dropping to file Using Outlook 1
rohit I want to Populate Popup box while sending any email with attachment. Outlook VBA and Custom Forms 4
rohit I want to Populate Popup box while sending any email with attachment Using Outlook 1
S PoP up reminder while opening the outlook? Outlook VBA and Custom Forms 1
S Pop up reminder while i close outlook Outlook VBA and Custom Forms 5
J Outlook 2007 Error sharing Calendar: Error while preparing to send sharing message Using Outlook.com accounts in Outlook 2
Commodore Unified inbox shows moved messages for a while Using Outlook 4
M Disk Reads of outlook.pst while outlook not open Exchange Server Administration 1
V Need to add some text in subject while creating new mails - NEED VB CODINGS Using Outlook 4
D Remove extension while saving attachments Using Outlook 1
J OL2010 Create a new task while off line Exchange Server Administration 3
J Form 'While You Were Out' body text not working Using Outlook 24
R POP3 Mail repeating while sending to group of recipient Using Outlook 1
S The operation failed error while send email to other domain. Using Outlook 1
R outlook freezes for 5 to 7 mininutes while send a file attached from netwrk dr Using Outlook 2
B OL2010 - signatures while forwarding tasks or appointments Using Outlook 2
A How to send Personalized attachment while sending mass mail Using Outlook 1
H Outlook 2010 : Error while preparing to send sharing message Exchange Server Administration 8
D while moving a read e-mail message to my folder, the folder disapeared with all the messages stored Using Outlook 2
M Outlook Anywhere is not showing freebusy informayion and User not able to open shared calender while Using Outlook 1
H Scan PST/Inbox Repair to Reports Fatal Error While Scanning File Using Outlook 1
S Email are getting saved in to draft folder while send from OWA 2010 runing on exhange server 2010 Exchange Server Administration 4
J cannot copy and paste while in list view in-cell editing Using Outlook 1
T Outlook 2010 continues to deselect self while trying to create email Using Outlook 3
B Unable to use Addressbook form Contacts file in Outlook while Outlook Express does allow this. Using Outlook 1
S "failed to update headers" message when processing deleted / expired tasks while migrating from Outl Using Outlook 4
T getting error message "please wait while windows configures microsoft office single image 2010" whe Using Outlook 4
A Hub Trasport error !!!! while exchange 2010 setup Exchange Server Administration 5
J The messaging interface has returned an unknown error while displaying Tasks on To-Do Bar Using Outlook 2
S DNS query failed error in exchnage 2010 only while sending email to hotmail.com Exchange Server Administration 7
S steps to consider while adding additional exchange 2010 server Exchange Server Administration 4
Y Outlook 2010 App Crash while importing contacts Using Outlook 3
M loosing extension of attached documents while sending mails via MS Exchange Serer 2003 Using Outlook 4
M download emails and share with multiple users on Outlook 2003 while holding read and flagged status Using Outlook 2
T Getting an error message while trying to accept a meeting request Using Outlook 1
W message appear while outlook 2007 is open ask about a password Using Outlook 3
P How to set up meeting while in Eastern Time Zone for a meeting I will be having in the Central Time Using Outlook 1
T Outlook version 12.0.6529.5000 freezes up while attempting to send/receive Using Outlook 1
T Outlook not connecting to exchange server while connected to VPN Using Outlook 1
R the signin box pops up every minute or so while in outlook. The email address and pw are already filled in but you still have to hit the enter box to Using Outlook 1
E Getting Pop-up for login credentials while in Outlook 2007. Using Outlook 1
Similar threads


















































Top