【问题标题】:azure developement fabric dll hell天蓝色开发织物 dll 地狱
【发布时间】:2011-03-19 01:43:38
【问题描述】:

您好,我正在尝试在 Windows 2008 服务器上打包和启动 azure 开发结构,我离得很近,但还很远。我采取的步骤是 1)运行cspack.exe命令/copyOnly生成.csx文件夹 2) 运行csrun.exe commmand /LaunchBrowser 启动开发结构并启动浏览器

错误如下

System.BadImageFormatException: 可以 不加载文件或程序集 'Interop.SSCE' 或其之一 依赖关系。试图 加载一个不正确的程序 格式。

== 预绑定状态信息 === LOG: User = IP-0AE2B2DF\Administrator LOG: DisplayName = Interop.SSCE(部分) 日志:应用程序库 = file:///C:/Users/Administrator/Documents/Visual 工作室 2010/Projects/MyAzureProject/src/AzureCloudService/ServiceDefinition.csx/roles/MyAzureProject.Web/approot/ 日志:初始 PrivatePath = C:\Users\Administrator\Documents\Visual 工作室 2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\bin 调用程序集:(未知)。 === LOG:此绑定在默认加载上下文中开始。日志:使用应用程序 配置文件: C:\Users\Administrator\Documents\Visual 工作室 2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\web.config LOG:使用主机配置文件: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config LOG:使用机器配置文件 从 C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config。 LOG:政策未应用于 此时参考(私人, 自定义、部分或基于位置 装配绑定)。日志:尝试 下载新网址 file:///C:/Users/Administrator/AppData/Local/dftmp/s0/deployment(98)/res/deployment(98).AzureCloudService.MyAzureProject.Web.0/aspNetTemp/aspNetTemp/root/dfbc079a/82bed8d5/互操作.SSCE.DLL。 日志:尝试下载新 URL file:///C:/Users/Administrator/AppData/Local/dftmp/s0/deployment(98)/res/deployment(98).AzureCloudService.MyAzureProject.Web.0/aspNetTemp/aspNetTemp/root/dfbc079a/82bed8d5/互操作.SSCE/互操作.SSCE.DLL。 日志:尝试下载新 URL file:///C:/Users/Administrator/Documents/Visual 工作室 2010/Projects/MyAzureProject/src/AzureCloudService/ServiceDefinition.csx/roles/MyAzureProject.Web/approot/bin/Interop.SSCE.DLL。 ERR:未能完成设置 程序集(小时 = 0x8007000b)。探测 终止。

这个错误发生在 2 个 dll Interop.SSCE.DLL 和 SqlLite.dll 我已经用 64 位版本替换了所有对 SqLite dll 的引用,并且我不再有任何对 Interop.SSCE.DLL 的引用,因为我没有使用它。从该位置手动删除这些程序集

"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MyAzureProject\src\AzureCloudService\ServiceDefinition.csx\roles\MyAzureProject.Web\approot\bin"

解决了这个问题,但我显然不想每次都手动删除这些,因为我试图自动化构建过程。那么我的问题是 .csx 文件夹是如何实际生成的,这会给我提供有关这些 dll 是从哪里复制的线索吗?这真的很令人沮丧,除了那些 dll 错误之外,我能够打包解决方案并启动开发结构而没有其他问题。请帮忙!!

【问题讨论】:

    标签: asp.net-mvc windows windows-server-2008 azure


    【解决方案1】:

    转到:

    工具 > 选项 > 项目和解决方案 > Web 项目

    检查Use the 64 bit version of IIS Express for web sites and projects。 这将确保您的 Web 项目在 x64 模式下运行,从而能够使用 Service Fabric 文件。

    希望对你有帮助...

    【讨论】:

      【解决方案2】:

      我意识到这是旧的,但我只是在尝试解决相同的问题时遇到它。就我而言,问题是我的一些项目被设置为构建 x86 程序集,而不是任何 CPU。解决方案是:

      1. 转到构建 -> 配置管理器
      2. 确保“活动解决方案平台”设置为“任何 CPU”
      3. 确保每个项目的“平台”也设置为“任何 CPU”
      4. 重建

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-29
        • 1970-01-01
        • 2015-08-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多