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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:49:26+00:00 2026-05-25T06:49:26+00:00

I have written a application with C#.But,I continually get an error message of access

  • 0

I have written a application with C#.But,I continually get an error message of “access denied” for “App Data” under my user profile (password protected user account).BTW,I’m using Win7.

Here is my code:

string path = string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "//Programım//"); 
  • 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-25T06:49:27+00:00Added an answer on May 25, 2026 at 6:49 am

    I would use System.IO.Path.Combine(...) instead of string.Conact(...) in this situation. Like this…

    string path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Programım");
    

    The result of path in your original code might not be what you are actually expecting.

    Once you are sure your path value is correct then call System.IO.Directory.Delete(...) like…

    Directory.Delete(path, true);
    

    If that still is not working, then there may be some other security permission problems with files in that directory, or with the directory itself. See the MSDN page for all of the exceptions that can be thrown from the Delete method and the reasons why.

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

Sidebar

Related Questions

i have written an application, but for some reason it keeps peaking at 100%.
I have written an application (using Delphi 2009) that allows a user to select
I have written an application that allows a user to define a query, run
I have written code in -(void)applicationWillEnterForeground:(UIApplication *)application , but my application is not detecting
i have written an iphone application but when i run it only blank screen
I have written a small web application but am missing some cool functionality. I
I have written an application which is working fine in Emulator . But when
I have written an applet application and integrate it to run under a webpage.
I have written application that is analyzing data and writing results in CSV file.
I have written a simple facebook application using PHP SDK. Application works well but

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.