IIS防爆preSS命令行ASP.NET MVC 6测试版8 [英] IIS Express command line ASP.NET MVC 6 beta 8

查看:470
本文介绍了IIS防爆preSS命令行ASP.NET MVC 6测试版8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个ASP.NET MVC 6测试版8的应用程序,当我在Visual Studio 2015年单击调试,我可以看到IIS防爆preSS和现场工作正常。

但是,如果我尝试从指向右边applicationHost.config文件获取和错误的命令行启动IIS前preSS,做别的东西需要被添加?

C:\\ Program Files文件(x86)的\\ IIS防爆preSS> iisex preSS /config:D:\\Programming\\Projects\\WebApplication1.vs\\config\\applicationHost.config / SITEID:3


  

HTTP错误502.3 - 错误的网关


  
  

而试图将请求路由有一个连接错误。


  
  

最可能的原因:•CGI应用程序未返回一组有效的
  HTTP错误。 •充当代理或网关的服务器无法
  处理请求,由于在父网关错误。


  
  

可尝试:•使用DebugDiag资料排查CGI
  应用。 •确定是否代理或网关负责本
  错误。


  
  

详细的错误信息:


  
  

模块httpPlatformHandler


  
  

通知ExecuteRequestHandler


  
  

处理器httpPlatformHandler


  
  

错误code 0x80070002



解决方案

我想:


  • 打调试在VS

  • 进入任务管理器 - >详细信息

  • 右键点击标题行 - >选择列

  • 选择命令行

  • 观察

在我的情况下,命令行是:


  

C:\\ Program Files文件(x86)的\\ IIS防爆preSS \\ iisex press.exe/配置:C:\\ Users \\用户名\\文档\\ Visual Studio的2015年\\项目\\ myproject.vs \\配置\\对ApplicationHost.config/网站:MyProject的/程序池:Clr4IntegratedAppPool


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.

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?

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

HTTP Error 502.3 - Bad Gateway

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. •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. •Determine if a proxy or gateway is responsible for this error.

Detailed Error Information:

Module httpPlatformHandler

Notification ExecuteRequestHandler

Handler httpPlatformHandler

Error Code 0x80070002

解决方案

I would:

  • hit Debug in VS
  • 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

这篇关于IIS防爆preSS命令行ASP.NET MVC 6测试版8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆