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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:02:17+00:00 2026-06-14T22:02:17+00:00

The environment is Windows 2008 R2, ASP.NET 4, IIS 7. I have a scenario

  • 0

The environment is Windows 2008 R2, ASP.NET 4, IIS 7. I have a scenario where a user submits some settings to the server, and the server generates a file based on the settings (either a bitmap or an SVG file) and saves the file into a folder. The image is generated by writing a bitmap and the SVG file is generated by using File.WriteAllText. The user is then redirected to that file.

What I did not expect is that the server was able to create the file without me giving write permissions to the folder. Things I checked:

  • w3wp.exe is running under the IIS AppPool/MyUser, the correct app pool identity
  • IIS AppPool/MyUser has read permissions to the folder — if I go to Security/Advanced/Effective Persmissions and check the permissions for MyUser on the folder, I get List Folder/Read Data, Read attributes, Read extended attributes and Read permissions
  • If I grab System.Security.Principal.WindowsIdentity.GetCurrent().Name right before the file is written, it’s correctly set to the application pool identity.
  • The created file’s owner is MyUser

What I don’t understand is why ASP.NET can create a file in a folder to which the application pool has read-only access?

  • 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-06-14T22:02:18+00:00Added an answer on June 14, 2026 at 10:02 pm

    Turns out the Users group had Special permissions of Create File on the folder. Not sure why that is added by default in Windows 2008 — on all my server boxes, new folders are created with Users having Special permissions of Create Files and some others. The behavior is different on Windows 7 — no special permissions are added to the Users group.

    Anyways, removing that permission addressed the issue.

    Thanks.

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

Sidebar

Related Questions

On a Windows Server 2008/IIS 7.5 environment, when I browse to a ASP.NET web
My environment is ASP.Net + IIS 7.0 + Windows Server 2008 + .Net 3.5.
Environment: Windows Server 2008 R2 IIS 7.5 .NET 4.0, Integrated Application Pool Oracle Client
My environment: Windows Server 2008, IIE 7.0, ASP.NET I developed a Silverlight client. This
Enviroment: Asp.Net 3.5, VS 2008, Windows XP Hello, i have a user control (uc:StackUC)
we have the following environment: a Windows 2008 Server with Apache 2.2.14 and SVN
We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I'm trying to debug an ASP.NET web application in this environment: Windows Server Standard
after installing .NET 4.5 on a Windows Web Server 2008 R2, some performance counters
I'm upgrading an ASP.NET 4.0 app from: Windows Server 2003 and IIS 6 to:

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.