zoukankan      html  css  js  c++  java
  • Asp.net Core 1.0.1升级到Asp.net Core 1.1.0 Preview版本发布到Windows Server2008 R2 IIS中的各种坑

    Asp.net Core 1.0.1升级到Asp.net Core 1.1.0后,程序无法运行了

    解决方案:在project.json中加入runtime节点

    "runtimes": {
            "win10-x64": {},
            "win7-x64": {}
        },
    Asp.net Core 1.1.0发布到Windows Server2008 R2 IIS后无法访问

    Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'api-ms-win-core-registry-l1-1-0.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)

    1、首先保证安装了最新版本的.Net Core SDK、Runtime、DotNetCore.1.1.0-WindowsHosting,然后重启IIS

    2、如果IIS能够正常访问单提示友好的异常界面,那么考虑是发布版本的问题,上述runtimes,在发布应用的时候,“配置”选项中是可以选择发布平台的,这一点很重要,选择win7和win10差异非常大,请注意windows server2008 R2对应的是win7版本,选对后发布问题解决

  • 相关阅读:
    编译安装LEMP
    eAccelerator配置和使用指南
    /dev/null的用途
    分库分表
    JVM
    SOFA 数据透析
    HTTPS
    SOFA 通信
    分布式锁
    mysql 锁
  • 原文地址:https://www.cnblogs.com/qidian10/p/6099677.html
Copyright © 2011-2022 走看看