Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED. Unexpe

Mlungisi Magwenyane 0 Reputation points
2025-02-28T06:50:18.9466667+00:00

Web Deploy experienced a connection problem with the server and had to terminate the connection. Contact your server administrator if the problem persists. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED.

Unexpected end of file has occurred. The following elements are not closed: results. Line 1, position 550.

Publish failed to deploy.

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
97 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alekhya Vaddepally 1,670 Reputation points Microsoft External Staff Moderator
    2025-03-03T15:42:57.9333333+00:00

    Hi Mlungisi Magwenyane,

    It seems like Web Deploy ran into a connection issue while trying to publish your application.

    The error message suggests that the connection to the server was unexpectedly terminated. it could be due to various reasons to encounter these issues.

    you have to check stable internet connection and try to deploy after some time.

    if not try to restart web management service on server.

    Open Services. MSc → Find Web Management Service → Restart it and also check web deployment settings configurations to ensure they are correct and complete.

    Also ensure the account user have proper IIS manager permissions and web deploy permissions.

    https://learn.microsoft.com/en-us/previous-versions/troubleshoot/iis/troubleshooting-web-deploy

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.

    Let me know if you have any further Queries.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.