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 1090413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:22:11+00:00 2026-05-16T23:22:11+00:00

I had Log4Net working on my Local machine. It logged to a DB with

  • 0

I had Log4Net working on my Local machine. It logged to a DB with one FileAppender, Nothing logged to a file. When I moved my code to my shared Hoting provider (GoDaddy) I got an exception about FileIOPermission required.
Does anyone have any ideas of what might have been happening?

I removed the configuration and am at the moment using ELMAH to log everything, (although I would like to use Log4Net) so I don’t have any of the examples or stack traces anymore.

Any thoughts would be appreciated.

  • 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-16T23:22:12+00:00Added an answer on May 16, 2026 at 11:22 pm

    This is not much info to work with, but here are a few things you can do:

    1. You can always debug the actual log4net code.
    2. When it doesn’t write to a file, it’s usually a problem of
      permissions. If it’s a web project,
      look at what user the application
      pool is running under (usually LOCAL
      SYSTEM), and that user needs write
      access to the file (and the
      directory where you want to put the
      file). The fact that the exception
      is actually FileIOPermission
      required definitely points to this
      direction.
    3. Similarly, it might be that there is a temp file that log4net is
      trying to use when you’re logging to
      a db. In that case, you might going
      to have to change your temp folder.

    Furthermore, look at this post:
    Log4Net works on Dev machine, fails when deployed to shared host (using same db/connstring)

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

Sidebar

Related Questions

Had to deploy some PHP code onto a shared server with only PHP5.2.8. All
Had to deploy some PHP code onto a shared server with only PHP5.2.8. All
I had an idea, if I add a python .py file to my C#
I had to move to the entlib logger from log4net. I know what you're
I am using log4net in a class with multiple threads and I had a
A co-worker had told me that he thought it was possible to store/access log4net's
Can anyone help, i have been using log4net with success i basically had a
I've had this working before, but now it's not working and I've been tearing
I had a quick log4net question. How can I specify which appender to use
Had this working well in Emacs 23.1.x but it appears to have broke in

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.