私のWindowsサーバー2008に.netコア2.0をインストールします 私は2つのWebプロジェクトを持っています。私のサーバーでは両方が動作します。私のサーバーに1つのプロジェクト作業を非常によく公開しますそれ以外のエラーはIISでASP.NETコア2.0がエラー502.5
HTTP Error 502.5 - Process Failure
Application 'MACHINE/WEBROOT/APPHOST/KI-TAP.COM'
with physical root 'C:\HostingSpaces\Reseller1\ki-tap.com\wwwroot\'
failed to start process with commandline
'dotnet .\ki-tap.dll', ErrorCode = '0x80004005 : 8000808c.
私はWindowsサーバーを更新しますが、それでも同じエラーが発生します。ここ
は私のProgram.cs(私はhere.Thisのコードを追加していないデフォルトである)
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
、ここでは私のweb.configファイル(公開され、デフォルトのコード)である
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\ki-tap.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
です@setの提案で :そしてここで私のstartup.csある
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace ki_tap
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddSession();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseSession();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
}
}
編集(Iは、セッション構成を追加しました) \プログラムファイル(x86の)\ DOTNETの\のDOTNET myProjectPath \ project.DLL
それは私が何をすべきerror.What下に与える:私は、CMDコンソールに
CをWindows Server 2008でそのコマンドを実行しますか?
package: 'Microsoft.AspNetCore.Antiforgery', version: '2.0.1'
path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
his assembly was expected to be in the local runtime store as the application
s published using the following target manifest files:
aspnetcore-store-2.0.3.xml
[IISのエラー502.5でASP.NETコア1.0](https://stackoverflow.com/questions/38624453/asp-net-core-1-0-on-iis-error-502-5)を検索しましたか? )? – Set
Thanks @Set .I編集したguestion.youはguestionの末尾にエラーが表示されます – user1688401