Jchem Web Service "System cannot execute specified prog

User 2f24778469

15-10-2010 19:03:00

When trying to install the Jchem Web Services Windows service, I get this error:


C:\Program Files\ChemAxon\JChem Web Services\bin>JChemWebServices.exe /Service
The system cannot execute the specified program.


I can run the service with the batch file directly, but this is a problem as it does not start automatically after the machine restarts for updates, etc.


System Details:



Any suggestions?

ChemAxon e274e1bada

18-10-2010 16:27:55

Hi,


please check, if the logged on user has permission to run that file.
Also please send me a screenshot about the error message in the EventViewer.


Regards, Edvard

User 2f24778469

18-10-2010 17:13:54

Hi Edvard, the user does have premissions.  I'm running as Administrator to set up the service.  The event log has more enlightening details though.  Log messages come in a group of three when I run JchemWebServices.exe:





Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    32
Date:        10/18/2010
Time:        12:00:31 PM
User:        N/A
Computer:    SERVER
Description:
Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system.

Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        10/18/2010
Time:        12:00:31 PM
User:        N/A
Computer:    SERVER
Description:
Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system.

Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        10/18/2010
Time:        12:00:31 PM
User:        N/A
Computer:    SERVER
Description:
Generate Activation Context failed for C:\Program Files\ChemAxon\JChem Web Services\bin\JChemWebServices.exe. Reference error message: The referenced assembly is not installed on your system.



So it looks like I'm missing some library dependency that wasn't installed with the Web Services package.  Shouldn't the installer have taken care of dependencies?

ChemAxon e274e1bada

20-10-2010 11:14:46

Hi,


It seems to be something is wrong at your side, JChemWebServices.exe uses just standard ATL libraries.
I attached a new instance of that file, please try to run a test with that. If the error has not been fixed you should try to update your system.


Edvard

User 2f24778469

20-10-2010 17:50:02

That replacement file works! Thanks!


Curiously, the original executable from the install is only 37 KB, while the replacement you gave me is 92 KB.  Could the bad one have been compiled without some necessary headers?

ChemAxon e274e1bada

21-10-2010 14:42:53

Hi,


We changed the CRT module and rebuilt the application with this.


Regards, Edvard