程序集由vshost.exe锁定 [英] Assembly locked by vshost.exe

查看:64
本文介绍了程序集由vshost.exe锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

在Visual Studio 2008 SP1中,差不多有9次我有VS2008无法将某个程序集(.dll)复制到\bin \文件夹的问题,因为它仍然被myapp.vshost.exe锁定

Almost 9 out of 10 times in Visual Studio 2008 SP1 I have a problem that VS2008 can't copy some assembly (.dll) to the \bin\ folder because it's still locked by myapp.vshost.exe

大多数情况下,当我从VS2008中同时将调试器连接到两个应用程序时会发生这种情况。

Most of the time this occurs when I attach the debugger to two applications at the same time from within VS2008.

示例

Example

例如,当我使用WCF进行一些测试时,我有主机和客户端控制台应用程序。主机使用另一个程序集,其中指定了服务和数据对象。我将主机作为启动项目,在启动后我右键单击客户端项目并执行"debug - >启动新实例"。 debbuger附加到两个项目。

For example when I'm doing some test with WCF and I have a host and a client console application. The host uses another assembly where the service- and datacontracts are specified. I have the host as startup project and after it started I right-click on the client project and do "debug -> start new instance". The debbuger is attached to both projects.

当我停止调试器和实例并再次按F5时,我得到以下错误:

When I stop the debugger and the instances and press F5 again, I get the following error:




Code Snippet

推荐答案

/ bump ...

/bump...

任何人?这是一个真正的问题,自VS2008 SP1以来就出现了

Anyone? This is a real problem and it's occuring since VS2008 SP1


这篇关于程序集由vshost.exe锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆