Failed to create COM object `hMailServer.Application':

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
dgaebler
New user
New user
Posts: 14
Joined: 2009-11-28 12:12

Failed to create COM object `hMailServer.Application':

Post by dgaebler » 2012-01-24 12:48

I know this is already discussed in several topics. I have read them all. I try to get the web admin to work since one year now without success. And there where no new posts regarding this topic since months.

My settings:
The error message is:
Failed to create COM object `hMailServer.Application': Zugriff verweigert
This problem is often caused by DCOM permissions not being set.

I run a Windows Web Server 2008 R2 with SP1 German language
with IIS 7.5
hmailserver 5.3.3
PHP Version 5.2.13 with Windows Cache Extension 1.0 for PHP 5.2

I use fast CGI

I followed the DCOM permission guideline and tried even to allow "everyone" without success. The php.ini files are changed regarding the required section settings.

What else can be done?

User avatar
mattg
Moderator
Moderator
Posts: 21113
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Failed to create COM object `hMailServer.Application':

Post by mattg » 2012-01-24 13:50

Is the phpwebadmin being installed on the SAME computer that hMailserver is installed on?
Did you install the phpwebadmin that came with the current version of hMailserver?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

dgaebler
New user
New user
Posts: 14
Joined: 2009-11-28 12:12

Re: Failed to create COM object `hMailServer.Application':

Post by dgaebler » 2012-01-24 16:09

both yes

User avatar
mattg
Moderator
Moderator
Posts: 21113
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Failed to create COM object `hMailServer.Application':

Post by mattg » 2012-01-25 05:55

Can you post a link to your phpinfo, or copy the text and post it please
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

dgaebler
New user
New user
Posts: 14
Joined: 2009-11-28 12:12

Re: Failed to create COM object `hMailServer.Application':

Post by dgaebler » 2012-01-25 09:50

I attached the phpinfo as gz pdf document.
Attachments
phpinfo().pdf.gz
(74.98 KiB) Downloaded 272 times

User avatar
mattg
Moderator
Moderator
Posts: 21113
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Failed to create COM object `hMailServer.Application':

Post by mattg » 2012-01-25 15:44

I have windows 7 Ultimate(SP1) - IIS 7.5, PHP 5.3.8 fast CGI

My PHPInfo shows that 'DCOM support' is NOT enabled, and 'com.allow_dcom' is 0 for both local and master value.

I used the PHP manager from >> http://php.iis.net/
I set DCOM permissions as per this >> http://www.hmailserver.com/documentatio ... ermissions

PHPWebAdmin works for me

Also, my 'sendmail_from' is null - but that should only matter if you use PHP to send email.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

dgaebler
New user
New user
Posts: 14
Joined: 2009-11-28 12:12

Re: Failed to create COM object `hMailServer.Application':

Post by dgaebler » 2012-01-25 16:15

Thank you for the hints.

I tried to set
com.allow_dcom = 0
but nothing changed.

Regarding the dcomcnfg.exe I tryed even to grant permission to everyone. But it did not work. Unfortunately all the given examples name the englisch names of the users. So I am not 100% sure if I took the right ones.
At the moment I have given IUSR and IIS_IUSRS the right for "Lokaler Start" and "Lokale Aktivierung". Maybe there is something wrong?

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Failed to create COM object `hMailServer.Application':

Post by dzekas » 2012-01-25 19:11

dgaebler wrote:Thank you for the hints.

I tried to set
com.allow_dcom = 0
but nothing changed.

Regarding the dcomcnfg.exe I tryed even to grant permission to everyone. But it did not work. Unfortunately all the given examples name the englisch names of the users. So I am not 100% sure if I took the right ones.
At the moment I have given IUSR and IIS_IUSRS the right for "Lokaler Start" and "Lokale Aktivierung". Maybe there is something wrong?
Newer PHPs do not run on IUSRsomething. They run on network service account.

dgaebler
New user
New user
Posts: 14
Joined: 2009-11-28 12:12

Re: Failed to create COM object `hMailServer.Application':

Post by dgaebler » 2012-01-25 20:36

I tried "Netzwerk" and "Netzwerkdienst" as well and it does not change anything. Can someone post a screen shot of the settings. In the meanwhile I do not trust in me anymore.

eXpress48
New user
New user
Posts: 6
Joined: 2011-09-01 13:45

Re: Failed to create COM object `hMailServer.Application':

Post by eXpress48 » 2012-01-29 00:17

Hi

I have exactly the same as dgaebler. I tried all the tips in this Thread but i only get:

Failed to create COM object `hMailServer.Application': Zugriff verweigert
This problem is often caused by DCOM permissions not being set.

when i want to access to the webadmin.

I'm running PHP 5.3.9 on IIS 7.5 on a Windows Server 2008 R2 Datacenter.

Anyone has an idea what is wrong?

Thx

Regards
eXpress48

Khurram
Normal user
Normal user
Posts: 38
Joined: 2007-12-02 09:21

Re: Failed to create COM object `hMailServer.Application':

Post by Khurram » 2012-10-03 16:40

I know its an old thread, but I fixed the same problem (Failed to create COM object `hMailServer.Application'.....) I had with php 5.4.7 on XP. So I am posting it here for others.

Giving the anonymous user permissions in DCOM does not do anything because the newer PHPs don't run under that account. I used the excellent SysInternal's Process Monitor to find out which user account PHP was using. It turned out to be the IWAM_<machinename> account. I gave this account permissions in DCOM and PHPWebAdmin started running.

NOTE: Your installation might be different. So before giving this account DCOM permissions, run Process Monitor to double check which account PHP is using.

chrish76
New user
New user
Posts: 2
Joined: 2013-02-13 11:31

Re: Failed to create COM object `hMailServer.Application':

Post by chrish76 » 2013-02-26 11:42

Hi

actual i facing the same issue as dgaebler

dgaebler can you fix the Problem in the Meantime?

jr3151006
Normal user
Normal user
Posts: 31
Joined: 2011-02-03 14:57

Re: Failed to create COM object `hMailServer.Application':

Post by jr3151006 » 2013-07-01 20:46

I faced the same trouble here, you should set DCOM permissions as the article (http://www.hmailserver.com/documentatio ... ermissions) for the following objects;

User = "SERVERNAME\IUSR"
+
Group = "SERVERNAME\IIS_IUSRS"

Worked fine!

Post Reply