![]() ![]() But please let me know if needed further detail. The same code is in working state for console Project. I also think this is related to TCP somewhere but nothing for sure. and It is in this method startListening(). I know one thing that service is not run yet. I dont know from where is the error that I am getting is coming. The service process could not connect to the service controller I am getting different Error messages everytime:Ī timeout (30000 milliseconds) was reached while waiting for a transaction response from the TCPService service. Wait until a connection is made before continuing. Start an asynchronous socket to listen for connections. Bind the socket to the local endpoint and listen for incoming connections. Socket listener = new Socket(AddressFamily.InterNetwork, IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, 1200) Speccy error: 'The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. ![]() Establish the local endpoint for the socket. ![]() Public static ManualResetEvent allDone = new ManualResetEvent(false) Here is the class AsynchronousSocketListner static string constr = "Integrated Security=SSPI Persist Security Info=False Data Source=WIN-OTVR1M4I567 Initial Catalog=CresijCam" Log an event to indicate successful start.ĮventLog.WriteEntry("Successful start.", EventLogEntryType.Information) ĮventLog.WriteEntry(ex.Message, EventLogEntryType.Error) protected override void OnStart(string args)ĪsynchronousSocketListener.StartListening() I searched foe the solution but could not get it. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |