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

2
  • 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. Aug 31, 2011 at 10:03
  • Post your comment as an answer and mark it as accepted.
    – Randy Levy
    Aug 10, 2012 at 5:27

1 Answer 1

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. –

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.