在IIS无限页面加载时主机ASP网核心应用 [英] Infinity page loading when host ASP Net Core application in IIS

查看:114
本文介绍了在IIS无限页面加载时主机ASP网核心应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,我与我的 ASP.Net核心应用程序错误。我已经安装在两个核心ASP.NET网站 dnx451 在框架的 Windows Server 2012中碧霞

Good day, I have an error with my ASP.Net Core application. I have installed two ASP.NET Core web sites on dnx451 framework on Windows Server 2012 in the Azure Cloud.

当我浏览到他们的浏览器,它们是无限加载。它发生在我安装了 HttpPlatformHandler 由于以下错误的,但现在我看不出有什么异常的无限加载。

When I navigate to them in browser, they are infinitely loading. Before it happened I installed HttpPlatformHandler because of the following error, but right now I don't see anything exception infinite loading.

错误,我看到之前安装 HttpPlatformHandler

Error that I see before install HttpPlatformHandler.

在这里输入的形象描述

此外,


  1. 申请成功从Visual Studio和DNX网络上运行。

  2. 在启动时插入日志(发送电子邮件),没有在那里创建的日志。

  3. 加载页面:

在这里输入的形象描述

请帮忙,谢谢。

推荐答案

在IIS找不到dnx.exe出现无限加载。当发布不包括在其输出运行时发生的。

Short Answer

Infinite loading occurs when IIS cannot find dnx.exe. That happens when the publish fails to include runtimes in its output.

使用的

cd Project01
dnvm use 1.0.0-rc1-final -runtime clr   <------ Set the active runtime.
dnu build
dnu publish --runtime active            <------ Use the runtime flag.

运行时标志提供的名称或运行文件夹的完整路径,包括或有效有关PATH当前运行时。

The runtime flag provides the name or full path of the runtime folder to include, or active for the current runtime on the PATH.

如果仍然不包括运行时目录,然后升级到最新的 DNU ,因为在旧版本中的错误。

If that still doesn't include the runtimes directory in the publish output, then upgrade to the most recent release of dnu, because there is a bug in older versions.

在IIS无法找到 dnx.exe 出现无限加载。当发布不包括在其输出运行时发生的。

Infinite loading occurs when IIS cannot find dnx.exe. That happens when the publish fails to include runtimes in its output.

下面是如何检查是否漏了 dnx.exe 引起无限加载问题。

Here is how to check whether a missing dnx.exe is causing the infinite loading problem.


  1. 发布您的Web应用程序(例如 DNU发布

  2. 导航到发布的输出目录(例如斌\\输出\\

  3. 确保为approot \\运行时间\\ .. \\ .. \\ dnx.exe 是present。

  1. Publish your web application (e.g. dnu publish.)
  2. Navigate to the publish output directory (e.g. bin\output\.)
  3. Make sure approot\runtimes\..\..\dnx.exe is present.

下面是发布的输出必须包含密钥文件。我省略了其他一些重要的文件,为清晰。

Here are the key files that the publish output must contain. I've omitted some other important files to for clarity.

\Project01\bin\output\
    approot
        packages         
        runtimes <--------------------------------This is sometimes missing.
            dnx-clr-win-x64.1.0.0-rc1-final
                bin
                    dnx.exe <---------------------IIS needs to find this.
        src              
        global.json      
        web              
        web.cmd              
    logs
    wwwroot <-------------------------------------IIS Physical Path

外部链接

  • https://github.com/aspnet/Hosting/issues/364#issuecomment-148567294
  • https://github.com/aspnet/dnx/issues/2858

这篇关于在IIS无限页面加载时主机ASP网核心应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆