我有一个ASP.NET 5应用程序,发布在dnx-clr-win-x64.1.0.0-rc1-update1。ASP.NET 5的Web应用程序与web.cmd,但不是在IIS下工作应用程序
我跟着this article将它部署到IIS 8.5。
当我手动运行它使用web.cmd - 它的工作原理。
但是,当我在IIS下运行它时,它会发出HTTP 404(Not Found)。
这可能是什么原因?
This is the IIS setup我正在使用。
这是在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>
而且project.json:
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
"Microsoft.AspNet.Mvc.Core": "6.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Nummularii.Common.dll": "1.0.0"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx451": {
"dependencies": {
"Admin.Common": "1.0.0-*"
},
"frameworkAssemblies": {
"System.ServiceModel": "4.0.0.0"
}
}
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
],
"scripts": {
"prepublish": [ "npm install", "bower install" ],
"prepare": "gulp"
},
"publishExclude": [
"**.user",
"**.vspscc"
]
}
我有完全一样的问题。 – Fanda
@Fanda看看我的答案.. – Elad