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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:47:34+00:00 2026-05-16T18:47:34+00:00

I have a Visual Studio project that gets installed to about half of the

  • 0

I have a Visual Studio project that gets installed to about half of the PCs in our company.

The application has an error logging routine that appends error messages to a text file that is kept here:

static string _appPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), Application.CompanyName);

For the most part, this works well and allows me to get to the log files on individual PCs.

It does not work everywhere. Some users have limited accounts, which do not have permissions to write to the Environment.SpecialFolder.CommonApplicationData folder.

I could modify the path to store here:

static string _newPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Application.CompanyName);

However, then when I need to collect log files, I must dig into every single user account folder on each PC to get to the logs.

What I would like to do is store these messages on our internal network. The problem with this is how to handle multiple write instances.

static string _netPath = Path.Combine(@"\\FileServer1", Application.CompanyName);

I’d like to use Messaging, but I’m not sure how to do that – or if it would be a good solution to this. Management wants me to push this update out this Friday (today is Wednesday).

What would be the easiest, most reliable method of using _netPath to store log files from some 100 PCs in our network?

Note: Please, if you reference MSDN, paste the article. We have an old Microsoft ISA firewall that is not able to pass MSDN websites. (The ISA server times out every time, and it is so frusterating! See ISA Proxy Server can’t… for my unanswered question on it.)

  • 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-16T18:47:34+00:00Added an answer on May 16, 2026 at 6:47 pm

    Save each pc’s log file under a different name in your network folder instead of having all the pc’s share the same log file.

    You can use their network ID for the name or anything else you can generate automatically.

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

Sidebar

Related Questions

I have a class/library project I made in Visual Studio, a Spreadsheet in the
We have a Visual Studio 2010 solution that contains several C# projects in accordance
I currently have a single solution that contains both the one application developed so
I am translating a compact framework 2.0 windows form in Visual Studio 2005. To
Much to my annoyance, Visual Studio 2010 added App.config files to all of my
Got an annoying problem here. I've got an NHibernate/Forms application I'm working through SVN.
I've got a nice power-shell driven post-build script that does some magic mumbo-jumbo for
I'm not really sure how to phrase my issue, so I hope this isn't
Background / Disclaimer First of all, please feel free to skip this entirely if

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.