Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 126887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:23:21+00:00 2026-05-11T05:23:21+00:00

We are trying to use Log4Net to log from our IIS 6-deployed WCF Application.

  • 0

We are trying to use Log4Net to log from our IIS 6-deployed WCF Application. We are trying to log to a file, but can’t seem to get the log files to be created, let alone see the logging output in them. The pertinent pieces of out web.config are:

<sectionGroup name='common'>     <section name='logging' type='Common.Logging.ConfigurationSectionHandler, Common.Logging' /> </sectionGroup> ... <common>     <logging>         <factoryAdapter type='Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging'>             <arg key='level' value='INFO' />             <arg key='showLogName' value='true' />             <arg key='showDataTime' value='true' />             <arg key='dateTimeFormat' value='yyyy/MM/dd HH:mm:ss:fff' />         </factoryAdapter>     </logging> </common>  <log4net>     <appender name='FileAppender' type='log4net.Appender.RollingFileAppender'>         <param name='File' value='c:\logs\ApplicationInfoTest.log' />         <threshold value='INFO' />         <param name='AppendToFile' value='true' />         <param name='DatePattern' value='ddMMyyyy' />         <param name='MaxSizeRollBackups' value='10' />         <param name='MaximumFileSize' value='10MB' />         <param name='RollingStyle' value='Size' />         <param name='StaticLogFileName' value='true' />         <layout type='log4net.Layout.PatternLayout'>             <param name='Header' value='\r\n\r\n---------------------------------------------\r\n' />             <param name='Footer' value='\r\n---------------------------------------------\r\n\r\n' />             <param name='ConversionPattern' value='%d [%t] %-5p - %m%n' />         </layout>     </appender>     <root>         <level value='INFO' />         <appender-ref ref='FileAppender' />     </root>   </log4net> 

With this configuration we can see INFO level logging coming out of our application when using DebugView, but it is clear that this is from the piece and not the
piece.

Is there something that we have failed to set up in web.config? Is it a permissions issue with the directory we have created for the logs to be written to?

Please point out our obvious mistake.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:23:21+00:00Added an answer on May 11, 2026 at 5:23 am

    Use ProcessMonitor from SysInternals to find out where permissions are being refused

    (Potentially you can determine the same info by attaching a debugger and trapping on exceptions, not in Just My Code)

    Are you sure that the process under which the service is running has permissions on the folder you’re trying to write to?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use log4net in an ASP.NET application with Visual Studio 2005.
I trying to use ImageInfo and Jython to get information from a image on
here is an easy question coming: i am trying to use log4net to log
I'm trying to use log4net to write to a customer event log under IIS7
I'm trying to customise a log4net file path to use a property I have
Trying to use a guid as a resource id in a rest url but
I am trying to use log4net in a VB.NET app for some unknown reason
Log4Net doesn't write when iis hosting a WCF Service. it works great when i
Trying to use make from cygwin using g++ I was getting Access Denied error
Trying to use an excpetion class which could provide location reference for XML parsing,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.