I have created a website which compiles successfully when I log-in using administrator but when I log-in using any other user, following error occurs.
The accepted answer does not work in the latest version of windows. My Windows 10 operating system with VS 2017 did not have a "Compatibility Tab" in the properties window - it appears they have now moved this option.
For windows 10 users, follow the below steps:
Firstly, you need to be logged in as an administrator for the computer you're using.
For previous versions, please follow the following steps
Your project should now open up as administrator going forwards, and common access issues to the Assembly will be resolved.