what does status 0 mean when creating mailbox?

Discussion for developers using MailEnable.
Post Reply
adamoneil1
Posts: 3
Joined: Wed Mar 30, 2011 9:13 pm

what does status 0 mean when creating mailbox?

Post by adamoneil1 »

I'm trying to create mailbox in C#. I'm getting a status value of 0 meaning the creation failed, but how do I find out why it failed? A simple return value of 0 doesn't tell me anything.

MailEnable
Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Re: what does status 0 mean when creating mailbox?

Post by MailEnable »

If you made the call correctly, then the only reason it would fail is permissions. This is the case 90% of the time.
The Windows Event Log is likely to contain information about the errror/problem.

As a guide for calling convention, the legacy code for the asp version of webadmin (avail. on the developer tools page) provides an implementation example.

You can run processmon and monitor file access of your application - you will see that it does on have full access to the config directory and children (which it needs - otherwise it will need to run under the MailEnableAppPool).

The API is being extended to provide additional information through a GetLastError function, and this will be available in future releases (but the function does not exist in current releases).
Regards, Andrew

Post Reply