Start Axapta as service

Hello, i’m looking for a tool to start an Axapta 2.5 3-tier session with a specific form as a windows service. (I have a server i want to reboot each couple of days and want to start the Axapta session on this box automatic) THX Pirmin

Hi Pirmin Please check ‘ServiceMill’ from Active+ Software http://www.activeplus.com/us/products/smill/default.asp) for this requirement. Hope this helps Harish Mohanbabu

Hi Harish, thx… this is half way wht i need… “how do i also get axapta loggedon and form opend” I found another tool, which allows scripting for scheduled apps. (but not for services) Thx Pirmin

Hi Pirmin >>how do i also get axapta loggedon and form opened 1) For automatic loggin’ into Axapta - Enter the ‘Network User ID’ (one with which you log into the network) in Network account name field under Tools → Options. Please make sure there is no user ID entered in Axapta Config Utility. 2) For opening form - You can use sysStartupCmd class for this purpose. Please note that you should never write code directly in Info and Application class. Please refer to Developers guide for more info. Hope this helps Harish Mohanbabu

Hi Permin I think for this requirement you don’t even need ServiceMill component. Try this and please let me know whether it works - 1. Create a shortcut of Axapta client (Ax32.exe). This must be under the Bin directory. 2. Copy that shortcut in the Startup folder of your computer. Generally this folder could be found under C:\Documents and Settings. In my machine, for example, I found this folder under “C:\Documents and Settings\HMohanbabu.NWC-LP-018\Start Menu\Programs\Startup” 3. Right click the shortcut. Under shortcut tab, you can see ‘Target’ field. By default, this field would have path to Axapta Exe file. Enter your configuration name. For example - “C:\Program Files\Navision\Axapta Client\Bin\ax32.exe” -regconfig=DEV_3T Where DEV_3T is the name of my 3 Tier configuration. Now when you restart your machine, Axapta should be up and running. Regards Harish Mohanbabu

Hi Do you need the form (a PC that will reboot itself will have nobody to enter anything in it…). Why do you not use a COM connection and program a NT service yourself. Just a suggestion.

Hi Permin Please let me know whether you need example for opening form. I will be glad to send the same [:)] Regards Harish Mohanbabu

Hi Harish… would be great having a littl example … Pirmin