[英]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: 我会:
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.