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

The Archive Base Latest Questions

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

I have recently moved to Windows 7. Now my .NET application fails writing log

  • 0

I have recently moved to Windows 7. Now my .NET application fails writing log file to C:\

My TraceListener is throwing the exception.

A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll

What to do? I am running application from the studio and so I think it must inherit all my rights and I am the admin on my pc.

  • 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-23T11:56:22+00:00Added an answer on May 23, 2026 at 11:56 am

    If you have UAC enabled you won’t be able to write files to C:\, even if you’re admin, unless you start the program in elevated mode to activate the admin privileges.

    Files shouldn’t really be placed in the root of C:, so the best is to create a subdirectory and give yourself access rights (to your account, not the administrators group). If you really want to have the file on C:\ and not run it as elevated, you can use Windows Explorer to grant yourself (your account, not the administrators group) write access to C:\.

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

Sidebar

Related Questions

I have recently moved to .net 3.0 (windows forms, C#). I want to know
I have recently moved my blog from one serever to another. I am now
I am an intermediate user of EF in .net 3.5 and have recently moved
I have recently moved my VisualSVN Server 2.5.2 to a new machine(from Windows Server
I have recently moved to C#.net 4. I love Parallel.For, but not sure when
I have recently moved the masterLayout template for a web application into an external
We have recently moved some data from an SQL Database instance to another one
I have recently moved my RoR app on the Heroku platform, and almost everything
I have recently moved to a MacBook Pro, which has meant leaving my beloved
can anyone help. I have recently moved servers, its IIS7 rather that our previous

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.