Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i used Nlog for creating log files.it works when i run the project from my pc but if i publish locally and accessing the pages that time log not create.it means that how to create log locally hosted site? plz help me?. i m using mvc with razor.
Posted
Updated 24-Jun-14 21:26pm
v3
Comments
Sergey Alexandrovich Kryukov 25-Jun-14 3:14am    
Help with what? you did not ask a question, did not explain a single problem?...
—SA
Prasad Avunoori 25-Jun-14 3:25am    
That's may be permission issue.
Member 9027346 25-Jun-14 3:26am    
how to create log locally hosted site?
Ranjeet Patel 25-Jun-14 7:40am    
This may be because the path you have given for log file is not in the server. or may be the permission issue.

1 solution

XML
may be due to below issue nt working
check the permission issue
<nlog throwExceptions="false" />   needs to False in config file
In the <targets > node in config file is properly mention the file .
 
Share this answer
 

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