我刚刚使用visual studio 2015" web application-No Authentication"创建了一个新的ASP5 MVC6项目。 模板项目。我没有对项目进行任何更改,我在本地发布了项目,并使用Filezilla将发布的文件上传到主机(gearhost.com)。但是,当我打开我的网站时,它给了我这个错误: 指定的CGI应用程序遇到错误,服务器终止了该过程。
我的网址: http://publish1.gear.host/
以下是 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>
以下是 launchSettings.json 包含:
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26153/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"Hosting:Environment": "Development"
}
},
"web": {
"commandName": "web",
"environmentVariables": {
"Hosting:Environment": "Development"
}
}
}
}
以下是 global.json 包含的内容:
{
"projects": [
"src"
],
"sdk": {
"version": "1.0.0-rc1-final"
},
"packages": "packages"
}
以下是 appsettings.json 包含:
{
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Verbose",
"System": "Information",
"Microsoft": "Information"
}
}
}
谢谢..
答案 0 :(得分:0)
很少考虑:
stdoutLogEnabled ="true"
,并在日志文件中查看失败的实际原因。可能是因为权限,EF无法与DB服务器通信,可能是找不到DNX进程路径。 答案 1 :(得分:0)
我们不支持.NET 5或MVC 6,因为它们不在发行版中(仅限beta / rc)。但我们支持所有版本的.NET和MVC。