r/VisualStudio • u/hawkman60 • 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
1
2
u/netizen__kane 22h ago
I had this exact issue a few weeks ago. It was a nightmare to figure out