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

  • Home
  • SEARCH
  • 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 781629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:15:42+00:00 2026-05-14T20:15:42+00:00

I have a seperate Log4Net.config file. I added [assembly: log4net.Config.XmlConfigurator(ConfigFile = Log4Net.config, Watch =

  • 0

I have a seperate Log4Net.config file. I added

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]

to AssemblyInfo.cs

When I run the application with debug mode, lognet is logging. When i publish the application to IIS, lognet is not logging anything.

I have the followings also :

BasicConfigurator.Configure(); // in a method
private static readonly ILog _logger = LogManager.GetLogger(typeof(_Default)); // for the instance

What would be the reason for this?

  • 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. Editorial Team
    Editorial Team
    2026-05-14T20:15:42+00:00Added an answer on May 14, 2026 at 8:15 pm

    It could be that the AppPool identity user does not have permissions to write to the log file/directory (assuming you’re using a file appender).

    Here’s how to check the AppPool user account:

    • Start->Run->”compmgmt.msc” (or right-click “My Computer” and select “Manage”)
    • Navigate to “Services and Applications”->”Internet Information Service (IIS) Manager”
    • Find your site under “Web Sites” and right click->Properties
    • On the Virtual Directory tab, make a note of the “Application pool” setting
    • Cancel this dialog, and navigate to “Application pools” in the IIS manager
    • Right click the app pool you noted above, select Properties, and select the Identity tab
    • This shows the user account that is running the site.
    • Now, my suggestion is to check the folder permissions where you are trying to write the log, and make sure the app pool user has write access to the folder.

    If that’s not the problem, I’d recommend turning on the log4net internal debugging:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <appSettings>
            <add key="log4net.Internal.Debug" value="true"/>
        </appSettings>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had this problem w/ two seperate WYSWYG editors in my rails application
I have seperate functions for reading from a text file (depending on whether its
I have a application which uses .net Thread-pool to have multiple threads.It uses log4net
I have added seperate loggers for all my classes in logback.xml and i am
I have a WCF application hosted under IIS 7 and I've enabled log4net for
Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have a UINavigationController and I have seperate UIViews that I switch between using
I have 2 seperate databases with the same structure. I want to move a
Current I have a seperate maven module for my database access, all my DAO
I have been looking all over for this. I have two seperate prpt files

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.