简体   繁体   English

托管.NET CORE的自包含部署-没有dotnet.exe

[英]Hosting self-contained deployment of .NET CORE - no dotnet.exe

I have followed (as far as I can tell) all of the instructions located here for a self contained .NET core deployment: 我已经按照(据我所知)遵循了此处有关自包含.NET核心部署的所有说明:

https://docs.microsoft.com/en-us/aspnet/core/publishing/iis https://docs.microsoft.com/en-us/aspnet/core/publishing/iis

According to the page, I only need to run this command to get the module installed in IIS 根据页面,我只需要运行此命令即可将模块安装在IIS中

DotNetCore.1.0.3_1.1.0-WindowsHosting.exe OPT_INSTALL_LTS_REDIST=0 OPT_INSTALL_FTS_REDIST=0

My web.config looks like this: 我的web.config看起来像这样:

  <system.webServer>
<handlers>
  <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\mypackage.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />

But, the dotnet.exe is no where to be found on my server. 但是,dotnet.exe在我的服务器上找不到。 What am I missing? 我想念什么?

You seem to have published your application as a portable application (ie one that is trying to using shared runtime) but did not install the runtime. 您似乎已将您的应用程序发布为可移植的应用程序(即尝试使用共享运行时的应用程序),但未安装运行时。 You either need to install the runtime, or you need make changes to your application (project.json/*.csproj really) to make it standalone in which case when publishing it will contain the runtime with it. 您要么需要安装运行时,要么需要对应用程序进行更改(实际上是project.json / *。csproj)以使其独立,在这种情况下,发布时它将包含运行时。 From web.config perspective - when publishing a standalone application the processPath is {application}.exe instead of dotnet 从web.config角度看-发布独立应用程序时, processPath{application}.exe而不是dotnet

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “自包含”核心部署 (asp net) 中缺少 DLL - DLL missing from 'self-contained' core deployment (asp net) ASP.NET Core自包含的兼容性? - ASP.NET Core self-contained compatibility? Visual Studio 2017 ASP.Net发布自包含的点网核心应用程序 - Visual Studio 2017 ASP.Net Publish Self-Contained Dot Net Core App 独立的ASP.Net Core应用程序无法在Mac上运行 - self-contained ASP.Net Core app doesn't run on Mac 尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误 - 启动时不进行调试 - An error occurred attempting to determine the process id of dotnet.exe which is hosting your application - Starts without debugging 无法启动进程 dotnet.exe - Unable to start process dotnet.exe 尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误。 发生了一个或多个错误 - An error occurred attempting to determine the process id of dotnet.exe which is hosting your application. One or more error occured 无法启动进程 c:\Program Files\do.net\do.net.exe - Unable to start process c:\Program Files\dotnet\dotnet.exe ASP .Net Core 2自包含部署,在不同的应用程序池标识帐户下,IIS中出现502.5错误 - ASP .Net Core 2 Self Contained Deployment giving 502.5 Error in IIS under different App Pool Identity Account 引用的项目是一个非独立的可执行文件。 自包含的可执行文件不能引用非自包含的可执行文件 - The referenced project is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM