简体   繁体   English

无法使用共享同一端口的多个项目启动进程dotnet.exe

[英]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 : 我的启动项目的网址是:

  1. https://agent.webz.local:44343/ https://agent.webz.local:44343 /
  2. https://superAgent.webz.local:44343/ https://superAgent.webz.local:44343 /
  3. https://client.webz.local:44343/ https://client.webz.local:44343 /
  4. https://general.webz.local:44343/ https://general.webz.local:44343 /
  5. https://agentAPI.webz.local:44343/ https://agentAPI.webz.local:44343 /

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.

相关问题 无法启动进程 dotnet.exe - Unable to start process dotnet.exe 无法启动进程 do.net.exe - 输入或 output 无法重定向,因为指定的文件无效 - unable to start process dotnet.exe - input or output cannot be redirected because the specified file is invalid 尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误 - 启动时不进行调试 - An error occurred attempting to determine the process id of dotnet.exe which is hosting your application - Starts without debugging 尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误。 发生了一个或多个错误 - An error occurred attempting to determine the process id of dotnet.exe which is hosting your application. One or more error occured 进程 'C:\\hostedtoolcache\\windows\\dotnet\\dotnet.exe' 失败,退出代码为 1 - The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1 dotnet.exe 已退出 - 访问冲突 - dotnet.exe has exited - Access violation 发布错误:dotnet.exe失败 - Publishing error: dotnet.exe failed ASP核心网C:\\ Program Files \\ dotnet \\ dotnet.exe - asp core net C:\Program Files\dotnet\dotnet.exe Reinforced.Typings 在 MacOS 上找不到 dotnet.exe - Reinforced.Typings can't find dotnet.exe on MacOS 程序“[13492] dotnet.exe”已退出,代码为 -2147450749 - The program '[13492] dotnet.exe' has exited with code -2147450749
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM