I’m trying to web publish a project from Visual Studio 2022 at IIS10 on a remote Windows Server 2019. In .pubxml, MSDeploy is specified as the Web Publish Method. And in this situation I get the following error:
Could not complete the request to remote agent URL 'https://XX.XXX.XXX.XX:YYYY/msdeploy.axd?site=site_example'. The underlying connection was closed: An unexpected error occurred on a receive. The decryption operation failed, see inner exception. Local Security Authority cannot be contacted. Publish failed to deploy.
Access to the server is open on the port XX.XXX.XXX.XX:YYYY and accessible via RDP.
I looked for how to configure a server for web publishing on various resources. Maybe I didn’t configure something?
mashaji is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.