Assembly is being used by another process

点点圈 提交于 2019-12-08 15:28:33

This is a long shot, but is there any chance that your web.config has 'shadowCopyBinAssemblies' set to 'false'? Or that an upstream config file has that setting turned off?

I think that might cause the problem you're seeing.

Ok, so my colleague gets back from vacation and said he bumped into this problem earlier :) It seems that root cause for the assembly to be locked (or held by the building process), is due to the use of testaccessors to test private methods, in combination of an implementation of CodeAccessSecurityAttribute. Note that this is not a problem in Visual studio 2008, but only in 2010 See another case here:

http://social.microsoft.com/Forums/en/Offtopic/thread/41ceebce-1ecf-4962-86d0-e68050df4a99

I've yet to find a solution for this, besides altering the private methods to public - I'll create a new post for this problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!