IIS 7 - 404 - File or directory not found. OR 403 Forbidden: Access denied.

There are two solutions to this which generally work for us: the first one is regarding permissions and the second is when an incorrect . NET Framework has been set.

Solution One

  1. Open IIS
  2. Add your website
  3. Click on Edit Permissions (top right)

IIS 7 Edit Permissions

Click on Security

Click Edit

IIS Properties

Click Add

IIS Add User

Click Advanced


Click Find Now

Find Now

Look for IIS_IUSRS

IIS Users

Click OK
Click OK again
Give IIS_IUSRS full rights

Solution Two

Click Application Pools (top left)

Application Pools

Click Your Website
Click Basic Settings (right column)

Application Pools

Set the correct .NetFrameWork for your application.

.Net FrameWork 4

Click OK

If these have solved the problem,  you're done!