Hello ,
I am publishing my mvc project on hosting, it was working, but suddenly while publishing it gives below error :
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Web deployment task failed. (Could not complete the request to remote agent URL '{domain_name}:8172/msdeploy.axd?site={domain_name}'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Could not complete the request to remote agent URL '{domain_name}:8172/msdeploy.axd?site={domain_name}'.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host

Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 13, 2022, 9:49 PM EDT
You should check and share
event viewer -> application
details
Sushant TorankarRank #3,026 · 476 reputationPosted Apr 14, 2022, 4:37 AM EDT
Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 14, 2022, 8:23 AM EDT
You check for error here in event viewer
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Apr 15, 2022, 11:43 PM EDT