我开始使用asp.net核心2.0 使用VS 2017创建了一个新项目。将它发布到Windows Azure。我得到了错误的IIS 502.5 asp.net核心2.0发布到azure获取IIS 502.5错误
检查日志流,我看到这个
未处理的异常信息:System.FormatException:短开关“-argFile”没有在交换机映射定义。 在Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load() 在Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1提供商) 在Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() 微软。 AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException & hostingStartupErrors) 在Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() 在RecruitmentStore.Host.Program.BuildWebHost(字串[] args)在d:\ RecruitmentStore \ RecruitmentStore.Host \ Program.cs:line 20 at RecruitmentStore.Host.Program.Main(String [] args)in D:\ RecruitmentStore \ RecruitmentStore.Host \ Program.cs:line 17
IIS详细 错误 - 502.5 - 坏网关
这里是我的web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore requestTimeout="00:20:00"
processPath="bin\IISSupport\VSIISExeLauncher.exe"
arguments="-argFile IISExeLauncherArgs.txt"
forwardWindowsAuthToken="false"
stdoutLogEnabled="true"
stdoutLogFile="\\?\%home%\LogFiles\stdout"/>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
我看到的bin文件夹内IISExeLauncherArgs.txt产生的文件(在我的地方),但不知道它如何在Azure中工作。
你能告诉我怎么解决这一问题?我没有重新启动应用程序服务几次,不利于
请后输出作为** **的文字,而不是文字的截图测试这一点。这使得每个人都更容易:) –
好吧,我编辑了我的问题,谢谢 – khoailang
这是由VS创建的未经修改的默认核心2.0应用程序? web.config通常没有所有这些额外的开关,所以关于如何部署它有一些不寻常的事情。 –