Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT



"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
.



Relevant Pages

  • Re: Troubleshooting connection loss (continued)
    ... suggestions as to what config files are to look like" ... tip on how to follow a complex script gone to waste on the OP. ... Instead of reading the whole document, this is the section I have in mind. ... then do the service network start. ...
    (comp.os.linux.networking)
  • Re: Most Prescribed Drug in U.S.: Antidepressants
    ... when they go to the doctor, as if they arent getting their money's ... is a school of thought that says one needs to treat the mind, ... feel they have been cheated if a script isnt written, ... CP related depression and regular Clinical Depression, ...
    (alt.support.chronic-pain)
  • Re: Most Prescribed Drug in U.S.: Antidepressants
    ... when they go to the doctor, as if they arent getting their money's ... is a school of thought that says one needs to treat the mind, ... feel they have been cheated if a script isnt written, ... to think a certain medication to work, ...
    (alt.support.chronic-pain)
  • Re: assign task field in VB.NET results in MAPI_E_NO_SUPPORT
    ... assigning tasks to other users is not possible... ... user folder but in this way I loose the messages with the evolution of the ... As long as you don't mind your code possibly randomly failing at some ... get the numeric property ID, then create the field by numeric ID. ...
    (microsoft.public.exchange.development)
  • Re: Dynamic loading of javascript files into web pages
    ... scripting library" into your favorite search engine (it's invariably ... and order of execution doesn't matter? ... mind doing research, but I do mind the "I know, but I won't tell" attitude. ... That attitude is in all in your head. ...
    (comp.lang.javascript)