在发布环境中无法通过企业库日志dll创建日志 [英] log can't be created by enterprise library logging dll in release enviroment

查看:70
本文介绍了在发布环境中无法通过企业库日志dll创建日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

使用Microsoft企业库日志dll:

在我的开发环境中,可以正确创建日志文件,但是当我将项目(.net)释放到IIS网站并运行我的项目时,尚未创建日志文件!

谁能告诉我原因,谢谢.
我尚未在IIS服务器上安装企业库.

Hello everyone,

Using Microsoft enterprise library logging dll:

In my development environment, log file can be correctly created, but when I release my project(.net) to IIS web site and run my project, log file haven''t been created!

Who can tell me the reason, thanks.
I haven''t install the enterprise library on the IIS server. It is not necessary, right?

推荐答案

在我的开发环境中,可以正确创建日志文件,但是当我将项目(.net)发布到IIS网站并运行我的项目,尚未创建日志文件!
您确定已在假定要创建日志文件的Web服务器上给出了正确的写入/创建权限吗?这可能是潜在的原因.确保提供了正确的安全权限.


我还没有在IIS服务器上安装企业库.没必要吧?
是的,没有必要.


在这里查看详细信息:记录应用程序块 [使用企业库获取日志 [
In my development environment, log file can be correctly created, but when I release my project(.net) to IIS web site and run my project, log file haven''t been created!
You sure that the proper write/create permissions were given on the webserver where the log file was suppose to be created? That could be the potential reason. Make sure that the proper security permissions are given.


I haven''t install the enterprise library on the IIS server. It is not necessary, right?
Right, it is not necessary.


Have a look at the details here: Logging Application Block[^]

In case needed, a sample implementation here: Get Logging with the Enterprise Library[^]


这篇关于在发布环境中无法通过企业库日志dll创建日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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