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 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 two folders in my asp.net website namely VENDORS and ADMIN i want
As part of building an ASP.net application, I have to display two things for
Possible Duplicate: How to apply the asp.net authorization in two different folders ? How
Summary We have an ASP.NET application that allows users to query a SQL Server
I have two applications under tomcat/webapps folder. tomcat/webapps/App1 tomcat/webapps/App2 Both applications share the same
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
i'm trying to use the Web.config transformations in my ASP.NET MVC 2 project running
I have a domain xyz.com on an ASP.NET shared hosting environment. I am confused
Over the last few months/years, I have shared a folder or two with numerous

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.