GoogleCloudPlatform / google-cloud-visualstudio

Google Cloud Tools for Visual Studio
https://cloud.google.com/tools/visual-studio/docs/
Apache License 2.0
87 stars 51 forks source link

GoogleCloudExtensionPackage did not load properly error in VS 2019 Community #1146

Open cluemaster-robert opened 1 year ago

cluemaster-robert commented 1 year ago

It was working fine and then I also installed VS 2022 to get ready to upgrade. I installed the Google extension into VS 2022 and it gives an instant error with no debug messages and now my VS 2019 will no longer load the Google Could Extension. I have uninstalled everything for both versions of VS, deleted the programs folder, the %appdata% folders, and anything I can think of. I reinstalled VS 2019, and the Google Could Extension but it just errors every time VS starts up. The .XML log says it can't find this.

`

Error
<source>VisualStudio</source>
<description>CreateInstance failed for package [GoogleCloudExtensionPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Shell.15.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
<guid>{3784FD98-7FCC-40FC-BE3B-B68334735AF2}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>`
mflorios commented 1 year ago

Hello, i have the same problem. Tried to install the extension many times, but always shows the same error.

Jomange20 commented 1 year ago

I have the same issue and they seems no longer care to fix this tool or even reply to us

milanvogels commented 1 year ago

Installing the previous version of this extension fixed it for me: https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/releases/tag/2.0.4

cluemaster-robert commented 1 year ago

That confirms that the latest updated version is broken and the Google Dev team needs to address the issue. Google Team, do we have an ETA on a solution?

On Tue, Mar 21, 2023 at 5:40 AM milanvogels @.***> wrote:

Installing the previous version of this extension fixed it for me:

https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/releases/tag/2.0.4

— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/google-cloud-visualstudio/issues/1146#issuecomment-1477770468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS3WOTLERAO5UB6VW22PMYLW5GOUHANCNFSM6AAAAAAUQXTBY4 . You are receiving this because you authored the thread.Message ID: <GoogleCloudPlatform/google-cloud-visualstudio/issues/1146/1477770468@ github.com>

TimMackey commented 11 months ago

I am having the same issue. I cannot fall back to a previous version. My function needs .NET Core 3.1 which is supposedly supported in version 2.0.5 release. Google Team, do you have an ETA for a fix?