ASP.Net Cannot Create Shadow Copy

While working with ASP.NET, if you face this error


Image 1.

Then make sure you have below tag in your web.config file:

  1. <hostingEnvironment shadowCopyBinAssemblies="false" />  
This tag will come under <system.web> section of your web.config file.


Image 2.