Closed YingGCP closed 6 years ago
Here's some additional information if needed:
Precise version of Windows Windows 10 Pro Version 1803
Precise version of Visual Studio,including updates (Help / About screenshot works) Microsoft Visual Studio Professional 2017 Version 15.8.0 VisualStudio.15.Release/15.8.0+28010.0 Microsoft .NET Framework Version 4.7.03056
Version of Google Cloud Tools extension Version 1.4.0.0
Authentication state in the plugin Unable to check because Manage account option is shown as disabled
Reproduction scenario Unfortunately I don't know. It was working fine and one day an error started popping up as soon as I open VS. Also when I select any options in the cloud toolbar.
Exact result with screenshots of any error messages screenshots attached
The VS detailed version information. VS_Help_About_Info.txt
Thank you so much for including the ActivityLog.xml. It looks like, somehow, one of your user accounts has multiple account user account files.
Go to %LOCALAPPDATA%\googlecloudvsextension\accounts and you will find several *.json files. Deleting them all (or just the ones with duplicate accounts) should fix this issue.
At least two of those *.json files have the same "account":"<user-email>"
field, and the extension is crashing because of that.
I am opening #1065 to track a fix for the underlying bug.
Thanks. The above fix worked. There were 2 *.json files in the folder and it started working when I deleted both of them.
Glad to hear you are about to use the extension again.
An user have installed the GoogleCloudToolbar extension on VS2017. It was working fine until one day it started throwing the below error. This error pops up as soon as I open VS.
"The 'GoogleCloudExtensionPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'xxxxxx/ActivityLog.xml'
Restarting Visual Studio could help resolve the issue"
The user uninstalled all other extensions that he downloaded, reinstalled googlecloud ext, resinstalled VS, repaired. Nothing fixed the issue. 'Publish to google cloud' option is disabled. Clicking on any other options like 'Manage Accounts' under GoogleCloud toolbar opens the same error pop up.
The ActivityLog is attached: ActivityLog.txt