Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET hostingEnvironment / shadowCopyBinAssemblies

Today I stumpled upon the shadowCopyBinAssemblies option in the hostingEnvironment tag.

Appearently this attribute it is a web.config (system.web) configuration Boolean option indicating whether the assemblies of an application in the Bin directory are shadow copied to the application's ASP.NET Temporary Files directory.

<hostingEnvironment shadowCopyBinAssemblies="false" />

A colleague had to enable this setting because (only) on his development machine he frequently got that ASP.NET error in the web browser:

 Cannot create shadow copy assembly file dll when that file already exists.

compiling a specific web project in Visual Studio 2008 and openining a page.

So now my question: can I preserve this setting in a production environment or could it harm performance and/or create other issues?

Thanks!

like image 835
splattne Avatar asked Nov 11 '08 15:11

splattne


1 Answers

I get this error from time to time, and usually doing Clean Solution followed by Rebuild Solution takes care of the problem. If this works for your colleague, then there's no need to play with the setting (especially in production).

like image 193
Kon Avatar answered Nov 15 '22 08:11

Kon