更改为发布时无法加载文件或程序集(nopcommerce 3.5)

CMS*_*CMS 6 asp.net-mvc nopcommerce visual-studio-2013 asp.net-mvc-5

我有一个新的nopcommerce 3.5网站,我想发布和调试它一切都很好,但很快我改为发布我得到这个错误

Error   1   Could not load file or assembly 'file:///C:\Users\User\Desktop\nop\packages\Autofac.3.5.2\lib\net40\Autofac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)   C:\Users\User\Desktop\nop\Libraries\Nop.Services\SGEN   Nop.Services
Run Code Online (Sandbox Code Playgroud)

我看着整个网络,尽我所能,它只是没有用

我做了什么.

  1. 清洁和重建
  2. 重启vs
  3. 我重新下载了一份新的代码副本,同样的事情发生了
  4. 删除所有引用并重建

CMS*_*CMS 6

好的,这就是我如何解决它.

这些文件被Windows锁定,只能在调试中看到

我不得不去找出错误中显示的每个.dll文件,在属性中有一个按钮UNBLOCK和我应用了更改错误消失了