while synchronizing error is coming

  • Thread starter Thread starter hemaneelagiri
  • Start date Start date
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
 
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
>
 
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.
 
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.
Similar threads
Thread starter Title Forum Replies Date
J E-mail held in Outbox while Minimized Using Outlook 3
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
A Send Email to Task while sending to Email address Outlook VBA and Custom Forms 1
A Send/Receive while outlook closed? Outlook VBA and Custom Forms 18
T read receipts while processing emails Outlook VBA and Custom Forms 5
S show icon while toolbar button is disabled. Outlook VBA and Custom Forms 1
P UserProperty of mail object problem while dealing with custom fold Outlook VBA and Custom Forms 2
C Problem while converting GAL entries to contacts in Outlook Cont Outlook VBA and Custom Forms 5
N runtime error while loading of outlook 2003 plugin Outlook VBA and Custom Forms 1
A How to change message format while forwarding a mail Outlook VBA and Custom Forms 1
R Encrypt and sign button while word is editor for outlook? Outlook VBA and Custom Forms 6
S Security exception while opening custom outlook form Outlook VBA and Custom Forms 1
C Assign To and CC list while using Redemption.dll library Outlook VBA and Custom Forms 10
C Persist the email format and attachments / images while replying A Outlook VBA and Custom Forms 5
R Errors while adding new item to main menu Outlook VBA and Custom Forms 4
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
C Synchronizing subscribed folders causes hanging during send/receive process Using Outlook 2
O Outlook 365 - Tasks are not synchronizing? Using Outlook 7
Diane Poremsky Synchronizing Outlook with a Smartphone Using Outlook 0
Diane Poremsky Synchronizing Outlook on Two Computers Using Outlook 0
P Outlook Keeps Synchronizing IMAP "Sent Mail" Folder Using Outlook 0
D Outlook 2013 stopped synchronizing with my IMAP account Using Outlook 0
J Synchronizing Contact "File As" Using Outlook 2
M Can you stop "Microsft Office Outlook is synchronizing folders"? Using Outlook 2

Similar threads

Back
Top