【问题标题】:Problem in hosting Dot net Core on windows server with IIS (nop commerce)使用 IIS(nopcommerce)在 Windows 服务器上托管 Dotnet Core 的问题
【发布时间】:2018-12-10 16:15:32
【问题描述】:

我想在 Windows 服务器 IIS 上托管 nopcommerce 4.10。我已经安装了 .net 核心托管包、.net Sdk 并且还设置了它的环境变量 c++ 可再发行包也安装了。但我仍然得到这个屏幕。我也启用了标准输出,但没有得到任何日志。

我已经尝试了论坛和所有其他网站的许多解决方案,但仍然遇到同样的问题。

网页配置

<configuration>
 <system.webServer>
<modules>
  <!-- Remove WebDAV module so that we can make DELETE requests -->
  <remove name="WebDAVModule" />
</modules>
<handlers>
  <!-- Remove WebDAV module so that we can make DELETE requests -->
  <remove name="WebDAV" />
  <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" 
 resourceType="Unspecified" />
</handlers>
  <!-- When deploying on Azure, make sure that "dotnet" is installed and the 
  path to it is registered in the PATH environment variable or specify the 
 full path to it -->
<aspNetCore requestTimeout="23:00:00" processPath="%LAUNCHER_PATH%" 
arguments="%LAUNCHER_ARGS%" forwardWindowsAuthToken="false" 
stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" startupTimeLimit="3600" 
/>
<httpProtocol>
  <customHeaders>
    <remove name="X-Powered-By" />
     </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration>

【问题讨论】:

  • 您安装了最新的 nopCommerce 版本吗?我也遇到了同样的问题,但是当我安装最新版本时,一切正常。
  • 最新的4.10
  • .net 内核怎么样?您是否安装了最新的 .net 核心版本?

标签: asp.net-mvc asp.net-core .net-core


【解决方案1】:

%LAUNCHER_PATH% 和 %LAUNCHER_ARGS% 没有被替换,应该类似于

<aspNetCore requestTimeout="23:00:00" processPath="C:\Program Files (x86)\dotnet\dotnet.exe" arguments=".\Nop.Web.dll" forwardWindowsAuthToken="false" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" startupTimeLimit="3600" />

【讨论】:

  • 我用你的替换了旧的.. 问题仍然存在。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-05
  • 2011-03-21
  • 2016-10-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多