Hmailserver installation error (not valid App)

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
aty154
New user
New user
Posts: 9
Joined: 2006-05-25 14:45
Location: Pakistan/Karachi
Contact:

Hmailserver installation error (not valid App)

Post by aty154 » 2006-07-12 10:56

I was using hmailserver hMailServer-4.2.1-Build-197 without any problem for more one month but today suddently it crash down. I try to open hmailadmin but following error display. I reinstalled hmailserver but same error pop up on every installation.

Automation error %1 is not a valid Win32 application.


Sys Confguration

OS = Windows server 2003 Web edition
RAM = 1 GB
MHz = 3.0 Ghz
HDD = 80 GB

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-07-12 21:05

Strange. Never seen that one before.

Does the hMailServer service run? Can you connect to the server using POP3/IMAP or SMTP?

Have you checked for hMailServer error logs in the hMailServer\Logs directory?

You could try to run
C:\path\to\bin\hMailServer.exe /Register
and see if that helps. This command reregisters the hMailServer COM API which hMailServer Administrator uses to access the hMailServer settings.

aty154
New user
New user
Posts: 9
Joined: 2006-05-25 14:45
Location: Pakistan/Karachi
Contact:

Post by aty154 » 2006-07-13 12:45

I solve my problem this problem was caused by one of following reason.

on my C drive there was file named "program" in root path. due which all services are closed. I delete that file and hmailserver start running. Thanks a lot.

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-07-13 22:17

Congratulations to finding a Windows bug / problem.. :)

Netopcom
Normal user
Normal user
Posts: 30
Joined: 2006-07-07 13:09

Post by Netopcom » 2006-07-14 13:48

martin wrote:Congratulations to finding a Windows bug / problem.. :)
Shoudnt it be congratulations to solve a windows bug? ;)

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

EXTREEMLY urgent problem needs fixed

Post by Pern » 2006-09-10 18:56

i dont see why others have not seen this before or why its not a problem for others too

the reson for the problem of the file program being created in the root directory and then having the problem with the automation IS a hemailserver problem

heres why

Code: Select all

Scanning Log
NOD32 version 1.1454 (20060321) NT
Command line: /quit /selfcheck- /list- /scanfile+ /scanboot- /scanmbr- /scanmem- /arch+ /sfx+ /pack+ /mailbox+ /ntfs- /sound- /pattern+ /heur+ /ah /adware /unsafe /log+ /logappend /log=C:\PROGRA~1\hMailServer\Logs\Nod32\NOD32.log C:\Program Files\hMailServer\Data\{D74EF1AF-8DC1-4460-B8B9-51DD41A721F4}.eml
CRC check of NOD32.EXE file: Disabled
Scanning memory: Not performed (option disabled)
Scanning MBR and boot sectors: Not performed (option disabled)
Date: 10.9.2006  Time: 12:49:49
Scanned disks, folders and files: C:\Program\; Files\hMailServer\Data\{D74EF1AF-8DC1-4460-B8B9-51DD41A721F4}.eml\
Path C:\Program\ is invalid.
Path Files\hMailServer\Data\{D74EF1AF-8DC1-4460-B8B9-51DD41A721F4}.eml\ is invalid.
Number of scanned files: 0
Number of threats found: 0
Time of completion: 12:49:49 Total scanning time: 0 sec (00:00:00)
if you note that its spliting the scanned path to the eml..a way to fix this is to have the path a dos path ie C:\PROGRA~1\ this will not make the space break the line and not make the file program in root anymore....

C:\Program Files\hMailServer\Data\{D74EF1AF-8DC1-4460-B8B9-51DD41A721F4}.eml
should be
C:\PROGRA~1\hMailServer\Data\{D74EF1AF-8DC1-4460-B8B9-51DD41A721F4}.eml
but this requires a rewrite on martins behalf i assume...

im not sure how to fix this in the interm (save turning off my nod32 scanning)
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

fixed program in root problem - duh read docs next time

Post by Pern » 2006-09-10 19:29

ok after looking thru the forum i came across a threed that said to use the "%FILE%" (i didnt know this existed, shoulda looked in docs first i guess - duh)

but heres the fix

"C:\Program Files\ESET\nod32.exe" /quit /selfcheck- /list- /scanfile+ /scanboot- /scanmbr- /scanmem- /arch+ /sfx+ /pack+ /mailbox+ /ntfs- /sound- /pattern+ /heur+ /ah /adware /unsafe /log+ /logappend /log=C:\PROGRA~1\hMailServer\Logs\Nod32\NOD32.log "%FILE%"

this makes sure allpaths are correct and allows for everything.
maybe this can be a how-to and a suggested example

just a thought..
but thats how to fix the problem (correctly, with no mods by martin(as he doesnt have enoph to do all ready))
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-09-10 19:34

Pern, first of all, it's named hmailserver - not hemailserver. (Saw you written "hemailserver" in a few posts).

Second, I don't understand what you mean. The first users issue was related to the hMailServer COM library. Your question seems to be related to the fact that you can't get NOD32 to work with hMailServer because hMailServer uses "long paths" and not "short paths". How are these related?

Third, if NOD32 requires short paths to work properly, I don't see how this is a hMailServer problem. Perhaps you should add quotes around the filename when you pass it to NOD32?

Am I missing something?

User avatar
martin
Developer
Developer
Posts: 6777
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2006-09-10 19:42

Was a bit slow on creating the post. It's interesting to see how it almost always turns out to be a user error when the subject of the post contains things like EXTREEMLY urgent problem needs fixed =)

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Post by Pern » 2006-09-10 20:00

yes bad typos on my part...

and yep said that in post that reading is always good...
did fix the problem tho...

and to note the reson the program file was being crated in root drive c: was due to the break(space) in the argument line..thus causeing it to not have the corect path..fix was in fact the "%file%" marco being in quotes.

so all fixed.

Post Reply