Advertisements
Home > Misc > Access denied to temporary Asp.net files folder – error while browsing Aspx page

Access denied to temporary Asp.net files folder – error while browsing Aspx page

I was getting below “Access denied” error, when I was browsing my Aspx page hosted in IIS 7.

Access denied Aspx page

Access denied temp Asp.net files

Hers are more details about my hosted Asp.net web application

  • Website application pool’s Pipeline mode is “Integrated”
  • Application pool Identity set to a Service Account

Below is the reason and fix that worked in my case

Reason

  • Issue seems a permission issue to access the temporary folder, for the account under which the website is running.
  • In our scenario, it’s the “Service Account” under which website is running does not have write access to Temp folder

Fix 1

  •  Provide “Write” access to the “C:\Windows\Temp” folder, to the Account under which your application running

Fix 2

  • Grant the required permissions to the “Service Account” by running Aspnet_regiis.exe -ga [User id]
    • So it grants the specified user or group access to the IIS metabase and other directories that are used by ASP.NET.
    • We typically use this option when creating a custom service account.
Grant Access

Grant Access

🙂

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: