gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 14:26:38 25 4
gpt4 key购买 nike

我有一个新的 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

我浏览了整个网络并尽我所能,但它只是不起作用

我做了什么。
  • 清理和重建
  • 重启 vs
  • 我重新下载了一份新的代码副本,同样发生了
  • 删除所有引用并重建
  • 最佳答案

    好的,这就是我解决它的方法。

    文件被 Windows 锁定,仅在调试中可见

    我必须转到错误中显示的每个 .dll 文件,
    在属性中有一个按钮 UNBLOCK 和我应用的更改错误消失了

    关于asp.net-mvc - 更改为发布时无法加载文件或程序集 (nopcommerce 3.5),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30361082/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com