codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Cannot neither install nor uninstall

Open jackhab opened this issue 4 years ago • 1 comments

Environment

  • Visual Studio version: 2017
  • CodeMaid version:10.6

After having issues with Codemaid window disappearing I tried to uninstall it.

Now I still have Codemaid menu in VS with non-functional Options and About items no matter what I do: install, uninstall, disable extension.

On startup I get The 'CodeMaidPackage' package did not load correctly and the following in the ActivityLog.xml:

  <entry>
    <record>598</record>
    <time>2021/07/06 14:03:44.802</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [CodeMaidPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll&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;file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;file:///C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\SteveCadwallader.CodeMaid.dll&apos;&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)&#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>{4C82E17D-927E-42D2-8460-B473AC7DF316}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Please, advise how to uninstall.

jackhab avatar Jul 06 '21 14:07 jackhab

Based on the error description it looks like there may be an incomplete installation. I would recommend moving/deleting the folder. It looks like the path in your case is:

C:\Users\Evgeny\AppData\Local\Microsoft\VisualStudio\15.0_e39ca9fa\Extensions\lsvunk5x.tig\

This link may be useful as well:

https://stackoverflow.com/questions/21903663/how-to-remove-an-already-installed-visual-studio-2013-extension-vsix-file/21903800#21903800

Hope it helps!

codecadwallader avatar Jul 18 '21 19:07 codecadwallader