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

推荐订阅源

T
Threatpost
S
Securelist
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Threat Research - Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
I
Intezer
G
GRAHAM CLULEY
Spread Privacy
Spread Privacy
T
Tor Project blog
V
Vulnerabilities – Threatpost
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Schneier on Security
Schneier on Security
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
S
Security @ Cisco Blogs
The Register - Security
The Register - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
L
LangChain Blog
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
The Hacker News
The Hacker News
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
博客园 - 叶小钗
Attack and Defense Labs
Attack and Defense Labs
Webroot Blog
Webroot Blog
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
V
Visual Studio Blog
P
Proofpoint News Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
Arctic Wolf
T
The Exploit Database - CXSecurity.com
宝玉的分享
宝玉的分享
Vercel News
Vercel News
D
DataBreaches.Net
P
Palo Alto Networks Blog
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 灰色

OSGi中使用Servlet遇到Permission denied的问题 ubuntu上安装netbeans提示找不到jdk的解决办法 Ubuntu的eclipse+CDT开发遇到的问题 - 灰色 - 博客园 备忘:昨天被人问到的3个Linux命令,我只会一个,惭愧啊 vmware中Ubuntu同宿主机Windows之间的共享问题 Oracle创建数据库时提示out of memory错误解决办法 vmware中鼠标乱跑问题的解决 TB级数据检索引擎开发笔记(一) 常用SQL语句 要到新公司了 error LNK2001: unresolved external symbol _main解决办法(zz) Ubuntu下使用IronPython不支持os标准库的解决方法 改进的dtree,支持无刷新添加和删除节点 我们公司正在实行的Scrum,效果还不错 如何将数据库恢复到不同名称的新库下 一分钟搞定清晰的网站图标(ico) SQL SERVER 孤立用户问题 - 灰色 利用DevExpress控件包中的GridControl做Master-Detail样式时,Detail表无法定位行的解决办法 Winform中Licenses.licx 总是签出导致影响多人开发的解决方法
Windows Service中调用Winform程序之log4net问题.
灰色 · 2009-09-09 · via 博客园 - 灰色

Posted on 2009-09-09 12:50  灰色  阅读(1004)  评论(0)    收藏  举报

因为Windows Service 中不能使用WebBrowser(如果各位看官知道如何使用,请不吝赐教),因此不得已写了个Winform,希望能在系统启动时便启动程序.问题来了.我在Winform中使用log4net,结果启动Windows Service后Winform程序总是报错,说无法实例化要进行日志记录的类.多方查找,根据一老外论坛上的只言片语得到启发.Windows Service的当前目录是System32,虽然Winform程序并不是Windows Service,但是似乎其当前目录也被看做是在System32下(纯属猜测),因此导致无法定位log4net.config文件.拷贝log4net.config到System32,搞定.