Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在IIS上本地运行ASP.NET 5项目_C#_Asp.net_Iis - Fatal编程技术网

C# 在IIS上本地运行ASP.NET 5项目

C# 在IIS上本地运行ASP.NET 5项目,c#,asp.net,iis,C#,Asp.net,Iis,我正在努力开始IIS的工作。当我在Visual Studio中通过IIS Express运行它时,它会工作,但当我发布它并在/wwwroot中设置物理地址时,我会出现以下错误: 这在已发布的web.config中: <configuration> <system.webServer> <handlers> <add name="httpplatformhandler" path="*" verb="*" modules="h

我正在努力开始IIS的工作。当我在Visual Studio中通过IIS Express运行它时,它会工作,但当我发布它并在/wwwroot中设置物理地址时,我会出现以下错误:

这在已发布的web.config中:

<configuration>
  <system.webServer>
    <handlers>
      <add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
    </handlers>
    <httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="false" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
  </system.webServer>
</configuration>


要使ASP5在本地通过IIS运行,我需要做哪些更改?当然,如果可能的话。

应用程序池配置是什么样子的?i、 e.是否设置为使用.Net Framework 4而不是2?@DavidG-我已附加了应用程序池配置的基本和高级设置..Net版本需要v4@DavidG-将其更改为v4,错误仍然发生。完全相同的错误?应用程序池配置看起来像什么?i、 e.是否设置为使用.Net Framework 4而不是2?@DavidG-我已附加了应用程序池配置的基本和高级设置..Net版本需要v4@DavidG-将其更改为v4,错误仍然发生。完全相同的错误?