K2 Server won't start - StartServiceCtrlDispatcher failed: Incorrect function.
Posted At : December 7, 2006 9:12 AM
After upgrading a client to ColdFusion MX7, I noticed that the verity section of the admin was returning an error. I realized that the Search Service was not even up.
- I tried to start the service, but it would not start. A very generic error message
"The Verity K2Server (version 2.20pr6) service could not be started. The service did not report an error , More help is available by typing NET HELPMSG 3534". - I tried to run the service from command line by using "C:\CFusionMX7\verity\k2\_nti40\bin\k2admin.exe" -cfg "C:\CFusionMX7\verity\k2\common\verity.cfg" -ntstart 1"
and got the following error:
startServiceCtrlDispatcher failed: Incorrect function
A quick google groups search resulted in one thread . I followed the recommendations but the service would not start. - Eventually I had to uninstall, and then reinstall the service using the 2 little known batch files (verity-uninstall.bat/verity-install.bat)that are installed on {cfusion.root}\verity.



![Validate my RSS feed [Valid RSS]](http://www.shlomygantz.com/blog/valid-rss.png)
Thanks so much for blogging about this. I just had this issue on my CF8 install and after running the service command directly got the same error as you. Did a quick Google and up popped this entry. Brilliant.
Ran the scripts and boom - everything is working again.
Thanks again.