473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

error in getting data from outlook

prabunewindia
199 100+
hi friends,
i am doing a ASP.NET project that display the mails from the outlook.
whatever in inbox, outbox, etc.
when i am getting the mail from inbox, i got the first one(welcome mail from the outlook) correctly.
but the second(received from system administrator for undelivered) it is showing one error like this
"Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID "

plz guide me to solve this one
Prabu
Apr 27 '07 #1
3 1285
Frinavale
9,735 Expert Mod 8TB
hi friends,
i am doing a ASP.NET project that display the mails from the outlook.
whatever in inbox, outbox, etc.
when i am getting the mail from inbox, i got the first one(welcome mail from the outlook) correctly.
but the second(received from system administrator for undelivered) it is showing one error like this
"Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.MailItem'. This operation failed because the QueryInterface call on the COM component for the interface with IID "

plz guide me to solve this one
Prabu
Prabu, did you ever solve this problem?
Jun 11 '07 #2
prabunewindia
199 100+
hi Frinavale,
thats not a mail item. so i won't need to get that one.
i completed outlook part of my project.
I forgot to inform that. sorry for that!
i posted my work as a article, in article section
my article

Prabu


Prabu, did you ever solve this problem?
Jun 12 '07 #3
Frinavale
9,735 Expert Mod 8TB
hi Frinavale,
thats not a mail item. so i won't need to get that one.
i completed outlook part of my project.
I forgot to inform that. sorry for that!
i posted my work as a article, in article section
my article

Prabu
Thanks Prabu,

I was facing a similar problem yesterday. It didn't have anything to do with emails though. I had a new version of a DLL sent to me and ran into that error when I tried to use it.

I fixed it by re-registering the DLL (had to un-register it, reboot and then re-register it)..then I re-referenced it in my class library and recompiled. I had to re-reference and recompile every other project that used my class library as well.

This fixed the problem.

-Frinny
Jun 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: J. A. Bailo | last post by:
I wrote an Outlook InterOp program. One of the declarations assigning a MAPI folder to a variable, throws an error if an instance of Operator is left open. That is not the problem. The...
1
by: Peter Krikelis | last post by:
Hi, I am trying to automate the Outlook so that I can get all new messages received and look at them. I have added refference "Microsoft Outlook 10.0 Object Library" and written code: ...
7
by: Max | last post by:
I'm using late binding to automate to Outlook and I'm getting an ArgumentException when I create a delegate. The arguments I pass seem valid. This is my code: Type oType =...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
0
by: tekiegreg | last post by:
Hi there, here is a snippet of my code that I've been getting an error message on, basically what I've been trying to do is pull out appointments, serialize to an object as well as all the contacts...
2
by: vijayasingh | last post by:
I am trying to take contacts data from out look and Synchronize with our database. I am using .net 1.1 framework. iam using following code. OLCont = MyOLList.GetLast 'CType(item,...
3
by: Kosmos | last post by:
Hey ya'll...I can't seem to figure out why I'm getting this error message, but it all started when I added the new line of code with the recSet5.AddNew --- when I ran the first line, the logic worked...
1
by: Lpitt56 | last post by:
I am running MS Access 2007 and I want to update an Outlook Address book from my Access Database. I started out by importing the Outlook Address Book as a linked table and it linked fine. I then...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.