This should be due to the permissions set in the application pool, they must be correct for the application to run locally in IIS.
Application Pools -> Right click Pool -> Advanced Settings -> Process Model -> Identity
And my identity was set up for the email used for a particular application
source share