zoukankan      html  css  js  c++  java
  • NopCommerce 发布时 Could not load file or assembly 'file:///...Autofac.3.5.2lib et40Autofac.dll' or one of its dependencies

    本文转自:http://www.nopcommerce.com/boards/t/33637/4-errors.aspx

    问题:

    The 3.5 solution compiles fine, and Nop.Web also compile fine, however when I try to publish to a local folder I get these four errors

    Error  1 Could not load file or assembly 'file:///F: opCommerce_3.50_SourceFreshpackagesAutofac.3.5.2lib et40Autofac.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)  F: opCommerce_3.50_SourceFreshLibrariesNop.Services      SGEN  Nop.Services

    Error  2 Metadata file 'F: opCommerce_3.50_SourceFreshLibrariesNop.ServicesinReleaseNop.Services.dll' could not be found  F: opCommerce_3.50_SourceFreshPresentationNop.Web.Framework     CSC     Nop.Web.Framework

    Error  3 Metadata file 'F: opCommerce_3.50_SourceFreshLibrariesNop.ServicesinReleaseNop.Services.dll' could not be found  F: opCommerce_3.50_SourceFreshPresentationNop.Web    CSC         Nop.Web

    Error  4 Metadata file 'F: opCommerce_3.50_SourceFreshPresentationNop.Web.FrameworkinReleaseNop.Web.Framework.dll' could not be found  F: opCommerce_3.50_SourceFreshPresentationNop.Web      CSC           Nop.Web

    I am using VS 2013 Ultimate on x64 Win 8.1.

    These errors are from the fresh release (Dec 10) Source code I downloaded from both codeplex and nop sites. Folders using nop source code and publish folders have write permissions.

    Thanks for any pointers.
    Amen.

    解答:

    Windows 7 or Windows 8 has a security feature, sometime it block  dlls inside  the .zip file that is downloaded from internet.

    Try following steps to get ride of it
    1. Download the source code again or find the .zip file that you already downloaded
    2. Right click then go Properties
    3. In General tab click 'Unblocked'

    Now unzip and try rebuild and publish, everything should be fine.

    Best of luck.

  • 相关阅读:
    递增一个指针
    ubuntu 系统 sudo apt-get update遇到问题sub-process returned an error code
    熟悉HDFS过程中遇到的问题
    大二暑假第八周进度报告
    大二暑假第七周进度报告
    oracle“ORA-00904”错误:标识符无效
    大学暑假第六周进度报告
    大二暑假第五周进度报告
    使用Navicat for Oracle新建表空间、用户及权限赋予
    大学暑假第四周进度报告
  • 原文地址:https://www.cnblogs.com/freeliver54/p/6150163.html
Copyright © 2011-2022 走看看