While working with ASP.NET, if you face this error
Image 1.
Then make sure you have below tag in your web.config file:
- <hostingEnvironment shadowCopyBinAssemblies="false" />
This tag will come under <system.web> section of your web.config file.
Image 2.