惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - bluehat

如果你的sharepoint 2013很慢... 2011你教会我的那些事儿 【sharepoint】SPEventReceiverStatus.CancelWithRedirectUrl 出错的请看这里 SharePoint Server 2010 LDAP Form 验证最容易出错的几点 CRM 客户端 SharePoint 2010 中如何彻底删除用户 SharePoint 2007/2010 的"SPGridView "控件常见的两个问题 Sharepoint 2010 中配置同步连接报错. - bluehat Exchange 2007 内存使用问题 不是黄山,胜似黄山--端午节之旅 心情不错 纠结 炎炎夏日,无心... 我想做一个有故事的人 无意发现Win 7 的时钟小秘密 小兽... 游陈阁老故乡 I am lost [ZZ]5 Paths to Happiness
Sharepoint 2010 Timer Job 自定义开发的几个注意事项
bluehat · 2012-05-31 · via 博客园 - bluehat

1.怎么自定义开发一个Timer Job 可以参见 http://msdn.microsoft.com/en-us/library/ff798313.aspx 

2. SharePoint timer jobs 是运行在 OWSTIMER.exe 这个进程下的,所以Debug的话,需要attach到这个进程上去

3. ConfigurationManager.AppSettings读取的自然也是 OWSTIMER.exe的配置文件,在14\bin\OWSTIMER.EXE.config,追加<appSettings>这个标签就好

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="ftpServerIP" value="192.168.164.134" />
    <add key="ftpUserID" value= "user" />
    <add key="ftpPassword" value= "password"/>
    <add key="localDestnDir" value="c:\test" />
   </appSettings>
  <runtime>
  </runtime>
</configuration>

4. 每次改动代码,部署可能不能及时生效,需要重启 SharePoint 2010 Timer 这个服务,然后在IISRESET