代码之家  ›  专栏  ›  技术社区  ›  doremifasolasido

MVC在发布后找不到依赖项

  •  0
  • doremifasolasido  · 技术社区  · 8 年前

    我正在尝试从VS2015发布MVC应用程序。

    我成功发布,但当我尝试运行应用程序时,我得到

    Could not load file or assembly 'xxx.DLL' or one of its dependencies. The specified module could not be found.
    

    如果在远程IIS上启用“启用32位应用程序”,则会得到:

    Could not load file or assembly 'xxx' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    

    当我在32位上构建一个64位dll时,通常会出现这个错误。这里的情况并非如此。有基于64位的64位dll。

    我该怎么办?

    P、 S:我还尝试获取32位DLL,构建在32位上,并将其部署到IIS,并将“启用32位应用程序”设置为true,我得到了相同的错误

    1 回复  |  直到 8 年前
        1
  •  1
  •   doremifasolasido    8 年前

    我将回答我自己的问题。