c#.Net 4.8 Web Desktop App publish to IIS occurs error as follow:
Check the event viewer and find the following errors:
Application ‘/LM/W3SVC/6/ROOT’ with physical root ‘C:\inetpub\wwwroot\WebTest04\publish\’ failed to start process with commandline ‘”dotnet” .\yourapplication.dll’ with multiple retries. Failed to bind to port ‘43302’. First 30KB characters of captured stdout and stderr logs from multiple retries:
Application ‘/LM/W3SVC/6/ROOT’ with physical root ‘C:\inetpub\wwwroot\WebTest04\publish\’ failed to start process with commandline ‘”dotnet” .\yourapplication.dll’ with multiple retries. Failed to bind to port ‘2833’. First 30KB characters of captured stdout and stderr logs from multiple retries:
Application ‘/LM/W3SVC/6/ROOT’ with physical root ‘C:\inetpub\wwwroot\WebTest04\publish\’ failed to start process with commandline ‘”dotnet” .\yourapplication.dll’ with multiple retries. Failed to bind to port ‘37340’. First 30KB characters of captured stdout and stderr logs from multiple retries:
I only listed as above three errors, all of which are security issues. It turned out to be: Failed to bind to port ‘43302’. Failed to bind to port ‘2833’. Failed to bind to port ‘37340’. and so on, for information security reasons, how can the server host allow the system to open any port at will? So, this problem is very serious, please don’t frame your product lovers! okay? Please come up with a complete solution as soon as possible, Version 2 does not have this problem. In the short term, please tell me how to set a port to bind in the design program or Web.config, thank you!
It’s not a Wisej.NET issue. The publishing is done by Visual Studio. You may want to contact Microsoft.