简体   繁体   English

配置企业库DAAB以在SharePoint计时器作业中使用

[英]Configuring the Enterprise Library DAAB for use in a SharePoint timer job

I am trying to set up a timer job which uses the Enterprise Library DAAB. 我正在尝试设置一个使用企业库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. DAAB在前端服务器(aspx页)的扩展程序中工作正常,在该服务器中,从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. 但是在计时器作业的上下文中,该调用在DatabaseFactory.CreateDatabase(“ connection_name”)附近的某个地方失败,抱怨我的连接未在配置中定义。

My question is, where is it looking for this configuration file / how should I set this up? 我的问题是,它在哪里寻找此配置文件/应如何设置?

Thanks, 谢谢,

Rob

Just copying down my comment so I can mark this answered. 只需抄下我的评论,以便我将其标记为已回答。

Along side the OWSTIMER.EXE is an OWSTIMER.EXE.CONFIG file. OWSTIMER.EXE旁边是OWSTIMER.EXE.CONFIG文件。 I just used the enterprise library configuration tool to set up my database connections there, and restarted the timer service. 我只是使用企业库配置工具在此处建立数据库连接,然后重新启动了计时器服务。 Works fine now. 现在工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM