Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- From: Dan Mitchell <djmitchella@xxxxxxxxx>
- Date: Mon, 26 Feb 2007 12:46:41 -0800
"Jose Manuel Tovar" <josem.tovar@xxxxxxxx> wrote in
news:ePIWiSdWHHA.192@xxxxxxxxxxxxxxxxxxxx:
The code inserts an outlook task in a folder using MAPI. I know that
working with tasks is undocumented with CDO but I do not know what
could be de difference between the execution of the sentence in a
script and .net
The problem is that CDO1.21 isn't supported from .Net:
http://support.microsoft.com/kb/813349
I don't think that's exactly the problem you're hitting, mind you,
that's more talking about threading/memory management issues. I'd guess
the problem you're seeing is that the type library import stuff isn't
working in .Net, so the call to Fields.Add is getting confused somewhere
in the COM wrapper layer.
As long as you don't mind your code possibly randomly failing at some
time in the future, I'd say the fix for your short-term problem would be
to try different approaches to creating the field; don't pass in the
value, for instance, and see if that works any better.
Alternative 2: see if you can read that field from an existing task,
get the numeric property ID, then create the field by numeric ID. As
long as you don't try and reuse this number (because it can vary across
servers/stores on a given serve, but should be consistent between a read
and a write), you should be okay.
-- dan
.
- Follow-Ups:
- Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- From: Jose Manuel Tovar
- Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- References:
- assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- From: Jose Manuel Tovar
- assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- Prev by Date: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- Next by Date: Re: Exchange Contact List
- Previous by thread: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- Next by thread: Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
- Index(es):
Relevant Pages
|