在IIS错误502.5 ASP.NET 1.0的核心 [英] ASP.NET Core 1.0 on IIS error 502.5

查看:2382
本文介绍了在IIS错误502.5 ASP.NET 1.0的核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新了我的服务器(Windows 2012R2)为的.Net 1.0核心RTM 窗口从以前的的.Net核心主机包1.0 RC2 。我的应用程序适用于我的电脑没有任何问题,但服务器不断显示:

I just updated my server (Windows 2012R2) to .Net Core 1.0 RTM Windows Hosting pack from the previous .Net Core 1.0 RC2. My app works on my PC without any issues but the server keeps showing:

HTTP Error 502.5 - Process Failure


Common causes of this issue:

The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port

它以前与RC2版本的工作。 。不知道是什么可能出问题

It previously worked with the RC2 version. Don't know what could go wrong.

这是所有的事件查看器说:

This is all event viewer says:

Failed to start process with the commandline 'dotnet .\MyWebApp.dll'. Error code = '0x80004005'.



最糟糕的是,应用程序日志的空的!我的意思是那些stdout_xxxxxxxxx .log文件是完全空的,所有的有0字节大小。

the worst part is that app logs are empty! I mean those stdout_xxxxxxxxx.log files are completely empty and all have 0 byte size.

我应该怎么办?我怎么能知道错误的原因时,没有登录?

What should I do?? How can I know the cause of error when there is not log??

推荐答案

所以,我得到了一个新的服务器,这一次是窗户2008R2和我的应用程序工作正常。

So I got a new server, this time it's Windows 2008R2 and my app works fine.

我不能肯定什么问题是与旧的服务器,但我有一个想法说了。

I can't say for sure what the problem was with the old server but I have one idea.

所以,因为我以前的编译应用程序的没有记住任何平台上它给我的 DLL 版本,其中仅工程安装,如果目标主机的.Net核心Windows主机包。在我的情况很安装,并且是很好

So because I previously compiled the app without any platform in mind it gave me the dll version which only works if the target host has .Net Core Windows Hosting package installed. In my case it was installed and that was fine.

在应用程序没有工作,我decieded编译它作为一个控制台应用程序 WIN7-64 作为运行。这一次的那一刻我跑了 exe文件我的服务器上的应用程序,它提供有关失踪DLL错误崩溃:

After the app didn't work I decieded to compile it as a console app with win7-x64 as runtime. This time the moment I ran the exe of my app on the server, it crashed with an error about a missing dll:

The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing

该DLL是从的包括在的Visual C ++可再发行的Visual Studio 2015年

That dll is from Universal C Runtime that's included in the Visual C++ Redistributable for Visual Studio 2015.

我试图安装该软件包(包括64位和放大器; 86),但每次都失败了(不知道为什么)在Windows Server 2012 R2

I tried to install that package (both x64 & x86) but it failed each time (don't know why) on Windows Server 2012 R2.

但是,当我试图在新的服务器进行安装时,Windows Server 2008 R2中,他们成功地安装。这可能是背后的原因,但仍不能肯定地说。

But when I tried to install them in the new server, Windows Server 2008 R2, they successfully installed. That might have been the reason behind it, but still can't say for sure.

这篇关于在IIS错误502.5 ASP.NET 1.0的核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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