无法在Windows Server 2003中创建日志文件 [英] Not able to create a log file in Windows Server 2003

查看:107
本文介绍了无法在Windows Server 2003中创建日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在Windows服务中托管了WCF服务.我正在使用以下命令在服务中创建日志文件:

FileInfo fi = new FileInfo(filename);



当我尝试在Windows 2003 Server中安装服务时,未创建文件.但是,当我在Windows XP(构建Dll的M/C)中安装相同的服务时,该服务会创建日志文件.

这可能是什么原因?请帮帮我.

问候,
我猜它与权限有关,可能是您将Windows服务设置为在其下运行的帐户. 看看 [ 解决方案

I am guessing it has to do with permissions, probably the Account you set your windows service to run under. Take a look[^].


这篇关于无法在Windows Server 2003中创建日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆