0

I am trying to set up a timer job which uses the Enterprise Library DAAB. The DAAB is working fine in the conext of the the front end servers (aspx page), where the data connection is retrieved from the web.config. But in the context of a timer job, the call fails somewhere near DatabaseFactory.CreateDatabase("connection_name"), complaining my connection is not defined in the configuration.

My question is, where is it looking for this configuration file / how should I set this up?

Thanks,

Rob

  • 1
    I resolved this myself. Along side the OWSTIMER.EXE is an OWSTIMER.EXE.CONFIG file. I just used the enterprise library configuration tool to set up my database connections there, and restarted the timer service. Works fine now. – reasonableKeith Aug 31 '11 at 10:03
  • Post your comment as an answer and mark it as accepted. – Randy Levy Aug 10 '12 at 05:27

1 Answers1

0

Just copying down my comment so I can mark this answered.

Along side the OWSTIMER.EXE is an OWSTIMER.EXE.CONFIG file. I just used the enterprise library configuration tool to set up my database connections there, and restarted the timer service. Works fine now. –