NetTalk Central

Author Topic: SelfService and MS-SQL  (Read 4437 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
SelfService and MS-SQL
« on: May 09, 2016, 02:46:28 AM »
Hi Guys,

I have a little app accessing / synchronising data to a MS-SQL database.
When I run the EXE manually, all is working fine.

I am trying to generate a service by adding the SelfService template, but it doesn't seem to work.
I have a log file reporting the connection activity.

When running as a service the application just stalls.  IOW no recurring connection attemps.

Could this be some problem with a Windows service trying to authenticate to MS-SQL multiple times?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: SelfService and MS-SQL
« Reply #1 on: May 09, 2016, 10:41:53 PM »
Hi Rupert,

Have you set a dependancy so that your service is depenat on msSql starting first?

Also make sure you don't do any Sql access before the server "starts". Recently there was someone who tried to get settings from SQL for the service itself and that seems not to work.

I'd also recommend debugging how far the application gets before it stalls. Perhaps you have some
code in your startup code which is failing when running in service mode.

Cheers
Bruce