Hi,
I'm trying to logon a session as an Anonymous login. I only need t o
access the public folders. I am also trying to d othis from a
webService, however I can get it to work on my local machine either.
I'm writting this in c#:
-----------------------------------------------------------------
MAPI.SessionClass oSession = new MAPI.SessionClass();
string profile = "/o=QUIPSOUND LTD/ou=FIRST ADMINISTRATIVE
GROUP/cn=CONFIGURATION/cn=SERVERS/cn=ITS_COMMS\n\nanon";
oSession.Logon(string.Empty,string.Empty,false,true,0,true,profile);
------------------------------------------------------------------
I can get a normal user to logon fine, by just specifying the server
and mailbox. But when I try the above code for anon logon i get the
following error:
The information store could not be opened. [MAPI 1.0 -
[MAPI_E_FAILONEPROVIDER(8004011D)].
Any example of this in C# would be great as I can only seem to find
example of it in VB.
Any help would be great.
Thank you in advance.
Simon Lee
Tom Rizzo [MSFT] - 10 Sep 2005 21:56 GMT
CDO 1.21 is not supported in .NET. Also, if this is Exchange 2000 or
higher, the anonymous access will not work.
Tom

Signature
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp
> Hi,
>
[quoted text clipped - 29 lines]
>
> Simon Lee
Riyaz Shaikh - 17 Sep 2005 10:57 GMT
> CDO 1.21 is not supported in .NET. Also, if this is Exchange 2000 or
> higher, the anonymous access will not work.
[quoted text clipped - 34 lines]
>>
>> Simon Lee