aws / aws-toolkit-visual-studio

AWS Toolkit for Visual Studio - a plugin to interact with AWS
https://aws.amazon.com/visualstudio/
Apache License 2.0
110 stars 29 forks source link

Unable to publish to AWS - There was a problem trying to open the publish dialog. #465

Closed roopeshkurian closed 2 months ago

roopeshkurian commented 2 months ago

I am using VS 2022. When I try to click on Publish to AWS, its showing an error message.

image

Unable to publish to AWS. But using the legacy method we can publish and upload to EBS.

Steps to reproduce the behavior

  1. Go to VS 2022
  2. Right Click on the project file.
  3. Click on Publish to AWS
  4. See error

Expected behavior When we click on publish to AWS , it should show the configurations to publish.

Screenshots

image

Toolkit Version: 1.58.0.0 Visual Studio: VS Community 2022 Visual Studio Version: 17.11.2 OS: Win32NT OS Version: 10.0.22000.0 OS Architecture: X64

log_2024-09-09_17-03-22_14668.txt

rbbarad commented 2 months ago

Hi @roopeshkurian, it seems that the Toolkit is having trouble finding the Deploy Tool that powers the Publish to AWS experience. Could you check to see if a cached Deploy Tool exists by navigating to the following location: %userprofile%\AppData\Local\AWSToolkit\aws.deploy.tools\2022\.store\aws.deploy.tools\

To fix this issue, we can delete the cache so that the Toolkit reloads it on next IDE startup.

  1. Delete the "2022" folder from the following location: %userprofile%\AppData\Local\AWSToolkit\aws.deploy.tools\2022
  2. Restart Visual Studio

Let us know if this fixes the issue you're facing.

roopeshkurian commented 2 months ago

Yes, the location "%userprofile%\AppData\Local\AWSToolkit\aws.deploy.tools\2022" exists on my computer, and I have followed the steps you mentioned. Now it's working well. Thank you so much for your help. I greatly appreciate it.