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

The Archive Base Latest Questions

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

I am trying to read from a config file in ProgramFiles/MyApp but in Windows

  • 0

I am trying to read from a config file in ProgramFiles/MyApp but in Windows 7 it throws an exception for Access denied, it is the same and for a file in ProgrammData/MyApp:

fileStream = new FileStream(this.StorageName, FileMode.Open, FileAccess.Read);

Is not it allowed to read only from these folders?

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

    take a look at this:
    http://social.msdn.microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/thread/53660459-EC32-4819-9213-5190F5A1B885

    it seems to be an UAC issue, and you should relocate your information according to nmahajan.

    This one is even better:
    http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/dd28741a-1025-4ca2-a88b-95a5ea156e7f

    Quoting GTVic:

    1 – C:\Users\username\Documents
    2 – C:\Users\username\AppData\Local
    3 – C:\Users\username\AppData\Roaming
    4 – C:\Users\Public\Documents
    5 – C:\ProgramData
    Use for:
    1 – data private to one user while logged onto one specific computer
    the database files can be easily found by the user by browsing their Documents folder

    2 – data private to one user while logged onto one specific computer
    the database files are in a hidden folder but may be accessible by a skilled user

    3 – data private to one user while logged onto any networked computer
    the database files are in a hidden folder but may be accessible by a skilled user

    4 – data public to any user logged onto a specific computer
    the database files can be easily found by the user by browsing the public Documents folder

    5 – data public to any user logged onto a specific computer
    the database files are in a hidden folder but may be accessible by a skilled user

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

Sidebar

Related Questions

I'm trying to create classes to read from my config file using ConfigurationSection and
I'm trying to read variables from a batch file for later use in the
I'm trying to read data from a.csv file to ouput it on a webpage
I'm trying to read a value from a file and use it in a
I'm trying to create a Zip file from .Net that can be read from
I am trying to read a single file from a java.util.zip.ZipInputStream , and copy
I'm trying to read from excel file with oleDB provider using C#: using (var
I am trying to read from a blocking socket, but I am wondering that
How would I go about testing the apache config file from python? I've trying
I'm trying to use SQLite in my .Net application but it throws an exception

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.