部署.NET Core WebAPI项目时出现问题

时间:2019-08-07 20:40:01

标签: asp.net-core iis asp.net-web-api .net-core asp.net-core-webapi

托管公司表示已安装.Net Core 2.2.1运行时。

我试图使用Framework Dependent Deployment发布项目,但出现错误500。更具体地说:

    It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet\
  - Installing .NET Core prerequisites might help resolve this problem:
      https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      2.1.10 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]

与托管公司联系,他们说他们没有安装Microsoft.AspNetCore.App,只有Microsoft.NetCore.App。老实说我不太了解。

我的问题是...我有一个WebAPI项目,很简单。如何部署到该服务器?如果他们没有安装AspNetCore,可以提供吗?像大多数人一样,我是新手...只是想发布这个项目,这似乎是不可能的任务。

我确实尝试了自包含部署(他们说他们不支持该部署),但是出现了500错误。

这是他们安装的东西:

==============================
.NET Core SDKs installed:
No SDKs were found.

.NET Core runtimes installed:
Microsoft.NETCore.App 1.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
==============================

想法有人吗?谢谢。

0 个答案:

没有答案