[英]Unable to start process dotnet.exe with multiple projects which are sharing same port
I am transferring platform from MVC 5 to core 2.0, project require multiple startups which has custom domains. 我正在将平台从MVC 5转移到核心2.0,项目需要具有自定义域的多个启动。
My startup project's Url are : 我的启动项目的网址是:
if I run project individually, then there is no error but, when I start projects in multiple startup mode, then only 1st one is working, others project returning below error. 如果我单独运行项目,则没有错误,但是,当我在多个启动模式下启动项目时,只有第一个正在运行,而其他项目则返回错误以下。
Unable to start process C:\\Program Files\\dotnet\\dotnet.exe. 无法启动进程C:\\ Program Files \\ dotnet \\ dotnet.exe。 The web server request failed with status code 500.Unable to start process C:\\Program Files\\dotnet\\dotnet.exe. Web服务器请求失败,状态码为500。无法启动进程C:\\ Program Files \\ dotnet \\ dotnet.exe。 The web server request failed with status code 503, Service Unavailable. Web服务器请求失败,状态码为503,服务不可用。
*Same domains are working fine with MVC-5. *相同的域在MVC-5上运行正常。
if I do change the port 44343 to 4434X , then issue is not coming. 如果我确实将端口44343更改为4434X ,则不会出现问题。
is there any way to start multiple project with same port. 有没有办法用相同的端口启动多个项目。
With MVC5 you starting a single IIS Express instance on 44343 port, which handles incoming requests and redirects them to appropriate .net application. 使用MVC5,您可以在44343端口上启动一个IIS Express实例,该实例处理传入的请求并将它们重定向到适当的.net应用程序。 On .net Core, each you project is actually a web server (named Kestrel), so you need to bind them on different port. 在.net Core上,每个项目实际上都是一个Web服务器(名为Kestrel),因此您需要将它们绑定在不同的端口上。 But actualy you can do what you want: Reverse Proxy to the rescue! 但是实际上,您可以按照自己的意愿做:救援的反向代理! Lurk more for Reverse proxy and NGinx (for example). (例如) 反向代理和NGinx更多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.