I have tried for a couple days to install and run as a service on Windows 7 and Server 2008 and it doesn't work for me. I can install the service without a problem, but when I start the service it times out. This happens when I create the service with installutil, sc.exe. I tried something called nssm that installs and runs the service, but the service does nothing (writing CrawlRequests.txt).
I imagine there is a security issue, but I have no clue. Have you successfully installed on 7 or 2008? Do you have any tips?
I have run the console app from this server and so the database, connection string, etc. all work fine.
I found the culprit in Crawler.cs line 79
_arachnodeDAO = new ArachnodeDAO(ApplicationSettings.ConnectionString, true, true);
Yeah, I guess it would be nice if you could see an error since it's a service.
I moved the instantiation of the _crawler to the try/catch to OnStart.
Thanks for the suggestion!
For best service when you require assistance:
On Windows Server 2008, I tried changing the permissions on the file directories, database, and service account. I always get the system error:
Error 1053: The arachnode.net service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.
The reason I think it is security is because even when OnStart contains only event logging methods, i.e. I comment out all the code from OnStart, the service still fails to start.
The nssm installs and the service starts, but there are no event log messages, so I can't tell what state the service is in.
Thanks for any help,