[英]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.