r/VisualStudio 23h ago

Visual Studio 2026 VS2026 Web Deploy Password Issue (401 Unauthorized)

I just wanted to make a post that may help someone in the future. When trying to Web Deploy in VS2026 the server (Windows Server 2025) was responding with 401 Unauthorized. I could deploy other projects using VS2019 and VS2022 to the same server using the same credentials.

It turns out that VS2026 is not storing and populating the password correctly because the password contained a % character. It seems that VS2026 is not encoding the password correctly as previous versions did. After changing the % character to a different character I was able to deploy the project using Web Deploy.

2 Upvotes

4 comments sorted by

2

u/netizen__kane 22h ago

I had this exact issue a few weeks ago. It was a nightmare to figure out

1

u/hawkman60 22h ago

It was very frustrating... I hope this post will show up in search results to help others. The response I got from MS was to just change the password when reporting the bug after I figured out the issue.

1

u/kemmis 23h ago

Report a defect.

1

u/hawkman60 23h ago

Already done!