MailEnable.Administration.Web.IISManagement Problems

SteveEsco
Posts: 5
Joined: Thu May 22, 2008 6:52 pm

MailEnable.Administration.Web.IISManagement Problems

Postby SteveEsco » Thu Dec 10, 2009 6:19 pm

Hi,

I have a custom C# windows forms app that adds new domains to IIS 7 and also adds postoffices and mailboxes to MailEnable. But for some reason the following code always fails (and returns false) for both the AddWebmailSite() and AddWebAdminSite() methods:

Code: Select all

      private void AddWebmailToWebsite(long IIS7WebSiteID)
      {
         MailEnable.Administration.Web.IISManagement iisManagement = new MailEnable.Administration.Web.IISManagement();
         if (false == iisManagement.AddWebmailSite(IIS7WebSiteID.ToString()))
         {
            MessageBox.Show("AddWebmailSite(" + IIS7WebSiteID.ToString() + ") Error");
         }
         if (false == iisManagement.AddWebAdminSite(IIS7WebSiteID.ToString()))
         {
            MessageBox.Show("AddWebAdminSite(" + IIS7WebSiteID.ToString() + ") Error");
         }
      }


I know that the IIS7WebSiteID parameter is correct. I am using Windows Server 2008 Standard and the latest MailEnable Enterprise Demo Version.

Any idea why these two methods fail?

Who is online

Users browsing this forum: No registered users and 1 guest