Azure 生成错误:在本地系统中运行辅助角色时

Azure 生成错误:在本地系统中运行辅助角色时,azure,azureservicebus,azure-worker-roles,Azure,Azureservicebus,Azure Worker Roles,我是Azure Worker角色的新手,我已创建了一个新的Azure云服务项目并添加了一个Worker角色。在该项目中,我有一个线程,该线程对我正在创建EventHub侦听器的sampledll进行函数调用 我发现错误如下 Severity Code Description Project File Line Suppression State Error The process cannot access the file 'D:\Azure\roles\s

我是Azure Worker角色的新手,我已创建了一个新的Azure云服务项目并添加了一个Worker角色。在该项目中,我有一个线程,该线程对我正在创建EventHub侦听器的sampledll进行函数调用

我发现错误如下

Severity    Code    Description Project File    Line    Suppression State
Error       The process cannot access the file 'D:\Azure\roles\simpleWorkerRole\approot\sampledll.dll' because it is being used by another process. simpleWorkerRole.WorkerRole C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.9\Microsoft.WindowsAzure.targets  1057
进程无法访问文件“D:\Azure\roles\simplewrkerole\approot\sampledll.dll”,因为其他进程正在使用该文件

错误消息表示另一个进程正在使用sampledll.dll,您可以尝试使用查找哪个进程正在使用(或锁定)sampledll.dll,然后手动结束该进程并重新生成解决方案