简体   繁体   English

IIS Express命令行ASP.NET MVC 6 beta 8

[英]IIS Express command line ASP.NET MVC 6 beta 8

I created an ASP.NET MVC 6 beta 8 application and when I click debug in Visual Studio 2015 I can see IIS Express and the site works properly. 我创建了一个ASP.NET MVC 6 beta 8应用程序,当我在Visual Studio 2015中单击调试时,我可以看到IIS Express并且该站点正常工作。

But if I try and launch IIS Express from the command line pointing to the right applicationHost.config file I get and error, does something else need to be added? 但是,如果我尝试从指向正确的applicationHost.config文件的命令行启动IIS Express,我得到并且错误,是否需要添加其他内容?

C:\\Program Files (x86)\\IIS Express>iisexpress /config:D:\\Programming\\Projects\\WebApplication1.vs\\config\\applicationHost.config /siteid:3 C:\\ Program Files(x86)\\ IIS Express> iisexpress /config:D:\\Programming\\Projects\\WebApplication1.vs\\config\\applicationHost.config / siteid:3

HTTP Error 502.3 - Bad Gateway HTTP错误502.3 - 错误的网关

There was a connection error while trying to route the request. 尝试路由请求时出现连接错误。

Most likely causes: •The CGI application did not return a valid set of HTTP errors. 最有可能导致:•CGI应用程序未返回有效的HTTP错误集。 •A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway. •由于父网关中的错误,充当代理或网关的服务器无法处理请求。

Things you can try: •Use DebugDiag to troubleshoot the CGI application. 您可以尝试的事项:•使用DebugDiag对CGI应用程序进行故障排除。 •Determine if a proxy or gateway is responsible for this error. •确定代理或网关是否应对此错误负责。

Detailed Error Information: 详细错误信息:

Module httpPlatformHandler 模块httpPlatformHandler

Notification ExecuteRequestHandler 通知ExecuteRequestHandler

Handler httpPlatformHandler 处理程序httpPlatformHandler

Error Code 0x80070002 错误代码0x80070002

I would: 我会:

  • hit Debug in VS 点击VS中的Debug
  • go to the Task manager -> Details 转到任务管理器 - >详细信息
  • right click header row -> Select columns 右键单击标题行 - >选择列
  • select "Command line" 选择“命令行”
  • observe

In my case the command line is: 在我的例子中,命令行是:

C:\\Program Files (x86)\\IIS Express\\iisexpress.exe" /config:"C:\\Users\\username\\Documents\\Visual Studio 2015\\Projects\\myproject.vs\\config\\applicationhost.config" /site:"myproject" /apppool:"Clr4IntegratedAppPool C:\\ Program Files(x86)\\ IIS Express \\ iisexpress.exe“/ config:”C:\\ Users \\ username \\ Documents \\ Visual Studio 2015 \\ Projects \\ myproject.vs \\ config \\ applicationhost.config“/ site:”myproject “/ apppool:”Clr4IntegratedAppPool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET 5 MVC 6 Beta 8-我是否必须将红est与IIS Express一起使用? - ASP.NET 5 MVC 6 Beta 8 - Do I have to use kestrel with IIS Express? 从Beta5升级的ASP.NET MVC 6 Beta8项目使IIS Express崩溃-主函数意外返回状态代码0? - ASP.NET MVC 6 Beta8 Project Upgraded from Beta5 crashes IIS Express - The main function returned unexpectedly with status code 0? 通过命令行使用IIS Express从特定文件夹启动AS​​P.net网站 - Start an ASP.net website from a specific folder using IIS Express via command line 在IIS Express或其他WebServer上部署ASP.NET MVC应用程序? - Deploy ASP.NET MVC App on IIS Express or an other WebServer? ASP.NET MVC和IIS Express-更改执行目录 - ASP.NET MVC and IIS Express - Change executing directory ASP.NET 5 MVC:无法连接到 Web 服务器“IIS Express” - ASP.NET 5 MVC: unable to connect to web server 'IIS Express' ASP.NET MVC - IIS Express(谷歌浏览器) - ASP.NET MVC - IIS Express (Google Chrome) 为什么 asp.net mvc 在 IIS Express 中的双本地主机上运行 - Why asp.net mvc running on a double localhost in IIS Express 在命令行上运行Entity Framework命令的ASP.NET MVC - ASP.NET MVC running Entity Framework command on the command line Asp.Net MVC 2 Beta ModelBinder更改 - Asp.Net MVC 2 Beta ModelBinder Change
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM