2016-01-04 17 views
3

我有一个ASP.NET 5应用程序,发布在dnx-clr-win-x64.1.0.0-rc1-update1ASP.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" 
 
    ] 
 
}

+0

我有完全一样的问题。 – Fanda

+0

@Fanda看看我的答案.. – Elad

回答

0

这是一个有点长开枪,但我想知道是否在任何目录名称中都有空间,这些名称是项目路径的一部分?在RC1中,这可以防止IIS Express运行Web应用程序。可能还有IIS。在错误报告链的某些级别,这看起来像文件未找到错误。但是在其他级别,它显示为“尝试确定托管应用程序的DNX进程的进程ID时发生错误。”

正如我所说,这可能有点远,因为它可能不是你的问题,但我认为它值得一提,因为它可能是。

有关详细信息,请参阅本GitHub的问题:https://github.com/aspnet/Home/issues/1194

相关问题