473,570 Members | 2,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

client operation failed on determining TNEF attachment type

Hi,

We are using Exchange Server 5.5, and have applications written in VB6 and
C# that read and process emails.

We are experiencing intermittent errors similar to

C# Application

System.Runtime. InteropServices .COMException (0x80004005): The client
operation failed. [Microsoft Exchange Server Information Store -
[E_FAIL(80004005 )]] at System.RuntimeT ype.ForwardCall ToInvokeMember( String
memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes,
MessageData& msgData) at MAPI.Attachment .get_Type()

VB Application

-2147467259 = The client operation failed. [Microsoft Exchange
Server Information Store

The error happens on the determination of the attachment type, as shown in
these code snippets:

C# Application

if ((CdoAttachment Type)att.Type ==
MAPI.CdoAttachm entType.CdoEmbe ddedMessage)

VB Application

If CInt(objMessage .Attachments(j) .Type) <> CdoEmbeddedMess age Then

As it is, the fact that there are attachments is recognized, but fails in
determining the attachment types.

Please note that we can open the emails and attachments from Outlook without
any problems.

We noticed that this behavior happens for emails with source containing
something similar to:

X-MS-TNEF-Correlator: 00000000FCD67D6 733BD374CB183ED 8ADF9C0E6BE44E3 100
This is a multi-part message in MIME format.
--Boundary_(ID_UM mVtfCC+Dy+KJBXV N6RQg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

--Boundary_(ID_UM mVtfCC+Dy+KJBXV N6RQg)
Content-type: application/ms-tnef; name=winmail.da t
Content-transfer-encoding: base64
Content-disposition: attachment; filename=winmai l.dat

Any help you can provide to help us understand the problem and work towards
a solutions is greatly appreciated.

Thanks and regards,
Romel
Nov 16 '05 #1
0 1676

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1434
by: Chris Hearson | last post by:
Hi All, I'm currently porting a VC++ app that generates SMTP messages to C#. Part of the generate message header is a TNEF stream that enables a custom form to be used when that email is received by an Exchange server. I'm using the System.Web.Mail classes to generate my C# SMTP message. Can someone point me in the right direction for...
2
2942
by: Petri Savolainen | last post by:
Hello, has anyone seen such a beast? I tried googling, PyPI, Parnassus etc. but could not find any pure-python code nor extensions to interface with any of the existing implementations. I am thinking about taking the Ruby code I found at http://www.zweknu.org/technical/index.rhtml?s=p%7c15
4
6566
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times. There is no consistency when it fails. Could anyone here shed some light on how to debug/resolve the issue. I guess IBM looked at the issue and were...
2
4547
by: CTDev Team | last post by:
Hi, We are using Exchange Server 5.5, and have applications written in VB6 and C# that read and process emails. We are experiencing intermittent errors similar to C# Application System.Runtime.InteropServices.COMException (0x80004005): The client
3
5237
by: centur | last post by:
I have a service, which acquire IMessage (CDO Interop) object from datasource (binary restored eml (RFC822) message from SQL database). And due to ms-tnef format of message - i can't extract attachments from it. Is there any example how I should parse TNEF part (I iterated over BodyParts, and found IBodyPart object with application/ms-tnef as...
5
2704
by: David Isaac | last post by:
I'm aware of http://cheeseshop.python.org/pypi/pytnef/ but it uses the tnef utility, and I'd like a pure Python solution (along the lines of http://www.freeutils.net/source/jtnef/ ). Is there one? Thanks, Alan Isaac
13
31376
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one outside of our domain, we get the error.. ** Client found response content type of 'text/html; charset=Windows-1252', but expected 'text/xml' **. We...
0
2472
by: prasenjit2007 | last post by:
I have a main form for inputing the (to/from/mesg/file) with the following code:- <html> <body> <table> <tr> <td>To:</td> <td><input type="text" name="to" size="50" value="pras_sandilya@rediffmail.com"></td> </tr>
1
8624
by: compurhythms | last post by:
I'm having an issue calling a java-based web service from a C#/.NET 2.0 client that uses WSE 3.0. (No WCF) There is an operation on the web service that takes a single base64 encoded parameter that is transported as a MTOM mime part in a multipart request. The web service provider has sent me a trace of a successful SOAP request and I...
0
7732
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7638
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7956
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6336
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3684
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.