I had exactly the same error and fixed it by changing the site’s application pool to run under the Network Service.
In IIS:
- Select your site’s application pool
- Select Advanced Settings on the right-hand side
- On the Advanced Settings pop-up window, scroll down to the Process Model group
- Change the first option called Identity to NetworkService (mine was set to the default ApplicationPoolIdentity).
I hope this helps.