HTTP Error 403.1 - Forbidden: Execute access is denied - IIS

In cases you have asp pages on your website but you get this error when you try to view the page on the browser. If you are getting this error there are two things to check.

Make sure that you have allowed Scripts to execute on your website.
To do that:

  • Open up IIS Manager
  • Go to the Home Directory tab
  • Under Execute Permissions set one of Scripts Only or Scripts and Executables.
  • Click Apply

If that didnt resolve your problem its also likely that you need to enable web service extensions for .ASP and .ASPX on your IIS.

To do that:


  • Open up IIS Manager
  • You will see a folder called Web Service Extensions, Click on it
  • Click on Active Server Pages, if you see that prohibited on the status column, click on Allow button.
  • Click on Asp .Net (whatever version you use for website), if you see that prohibited on the status column, click on Allow button.

When you try to set Allow permission you may get error like this one:

System.Web.HttpException: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET Files'.

If you get this error set Network Service account modify permission on the "Framework" folder and let the permissions be inherited by its child folders.