Download File via HM Web Service

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Download File via HM Web Service

Post by johnm »

Please tell me if it is possible to do the following and if so how?

I have created a self-extracting zip which contains rcc.exe, rcc.ini and the hostmon.chm file. I would like to create a link in a web page available thru the HM Web Service /authorized/ so that when I click on the link the Window's Open-Save-Cancel prompt will pop up and allow me to pick an option.

So far all that happens is the self-extracting EXE is opened(not executed) and the page displays the garbage characters of the EXE.

Here is my code in the html file:
<HTML>
<HEAD>
<TITLE> Advanced Host Monitor</TITLE>
</HEAD>
<body bgcolor="#FFFFFF" leftmargin="16" topmargin="60" rightmargin="16" marginwidth="0" marginheight="0">
<table align=center border=0 cellpadding=0 cellspacing=0 width=150>
<!--<tr><td width=290><b>Tools</b></td></tr>-->
<tr><td><a href="hostmonitor-rcc.exe" target="_blank">Host Monitor RCC</a></tr>
</table>
</BODY>
</HTML>
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Update available at www.ks-soft.net/download/ws224.zip

Regards
Alex
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Post by johnm »

sorry to be such a pest.

I renamed the old webservice.exe to .exe_old and extracted the new one into the folder and it generates the error "Error: Cannot start service "HMWebService". If I delete the new exe and put back the old the same error is now generated.

The event viewer shows for both EXEs old and new:
The KS Web Service service failed to start due to the following error:
KS Web Service is not a valid Win32 application

And if I start the service from Services the error is:
Error 193: 0xc1

what 's going on?

Thanks..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I just downloaded the same zip file to be sure I am using the same exe module. It works fine on our systems. It works fine in application and service mode.
Its definitely "valid Win32 application".
what 's going on?
I don't know. Looks like some problem with your Windows. Could you try to install web service on different system? Or reboot your system?

Regards
Alex
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Post by johnm »

It has something to do with the old INI file and the pswd line. I tried deleting everything from the webservice folder except for the new exe but it did not work.

Then...
I copied the new webservice.exe into a folder off the desktop. Ran it and installed the service and started it successfully. Then, I copied the contents of the old ini file into the newly created ini located on the desktop and removed all new lines except for the pswd line. That line I cut/pasted over the old pswd line. Saved and put it back into the original webservice folder and it worked fine.

Definitely strange...if you want me to test further I can probably reproduce the problem.

John
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Could you send that "old" ini file to support@ks-soft.net?

Regards
Alex
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Post by johnm »

yes most likely I can and will send it over.

By the way, I am still not in perfect condition. Although the webservice is starting now I get
"Transmission error (Web Service <-> HostMonitor): "Connection error"

when accessing the site. Also, the telnet service won't start anymore with the same error.

Maybe I should reinstall everything. What do you think? Will lose any custom settings?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Please make sure you have specified correct IP address (and port) of the system where HostMonitor is running.

Regards
Alex
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Post by johnm »

Ok will do. In the meantime I reinstalled everything and still am unable to get the webservice.exe to start as a service, same error.

I am running the webservice.exe as an application for now until I have more time to investigate.

Thanks for the help.
johnm
Posts: 117
Joined: Fri Apr 01, 2005 9:49 pm

Post by johnm »

Oh, by the way... the 2.24 version fixes the file download problem.

Thanks Much!
Post Reply