Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 13-Apr-11 17:21pm
v2
Comments
dan!sh 14-Apr-11 0:15am    
Can you check if there is any error in the event log?

1 solution

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[^]
 
Share this answer
 
Comments
oukyou77 14-Apr-11 0:45am    
I tried to create/write a log file not used the enterprise library logging dll. the log file is correctly created.And I have given the log folder the write/create permissions,but it doesn't work use the enterprise lib dl
Sandeep Mewara 14-Apr-11 1:15am    
You would need to give the user account accessing it. it might be ASPNET or NETWORK account or the user impersonating it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900