I created a web project and it runs well in Visual studio. However, I got the following error after published it to azurewebsites. What can cause the issue?
In the case if "Copy Local" is already True, I find it sometimes to work if you remove the files where it has been published to and publish again.
For example if you're using IIS, remove the websites and the contents of the directory to which they are published to, and publish again.
There might be older versions of files at the destination, so to ensure you aren't using older versions, delete everything before publishing again.