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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:00:46+00:00 2026-05-15T08:00:46+00:00

I have two folders in my asp.net web application in which I create new

  • 0

I have two folders in my asp.net web application in which I create new folders programmaticaly. The entire solution is under VSS source control.

I was not able to manipulate these two folders programmably.
For that, I gave {MACHINE}\ASPNET user account full control over these two folders.

Still, the “access denied to the path” error was coming. I saw that these entire folders were marked readonly. I tried to uncheck Readonly from explorer but not successfull, readonly check does not get removed.

Also, if I copy files using method, the destinationn copied file becomes readonly. I have also tried File.SetAttributes(path,FileAttributes.Normal); but no success.

How can I make the copied file not READONLY ?

  • 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-15T08:00:47+00:00Added an answer on May 15, 2026 at 8:00 am

    It is standard behaviour for copied files to carry over the attributes, and it should be possible to clear the ReadOnly attribute after you have copied it.

    Does the SetAttributes call fail or does it appear to work? Ensure that the permissions are being inherited by the folder contents as well as the folders themselves.

    EDIT: Just to add, you may need to give the IIS anonymous account read/write access to these folders as well, in IIS6 it is IUSR_machinename and in IIS7 it will be the IIS_USRS group.

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

Sidebar

Related Questions

I have to create a small asp.net-application. The last such web-application I have built
I have a web application built in asp.net, which uses resource files to support
I have one asp.net web application. It is using two membership provider. Two sign-in
I have developed an application in ASP.NET 3.5 which utilizes the Membership and Roles
I have an ASP.NET web application that uses jQuery on client side. On one
I have an ASP.NET 4 web application that references a SOAP web service. I
I have two ASP.NET websites on a web-server, and two SQL Server databases. I
Environment In my solution I have three projects, they are: Web (Asp.net MVC4) Model
I have two folders in my asp.net website namely VENDORS and ADMIN i want
I have two web apps, one asp-based and one asp.net based. When accessing them

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.