uli-weltersbach / XPathTools

A Visual Studio Extension which can run any XPath and XPath function; navigates through results at the click of a button. Can show and copy any XPath incl. XML namespaces, avoiding XML namespace induced headaches. Keeps track of the current XPath via the statusbar.
41 stars 4 forks source link

No longer working on VS2012 #7

Closed fernandofig closed 9 years ago

fernandofig commented 9 years ago

After the latest update (early September), this extension no longer works for me. I get the following error when Visual Studio is starting up:

image

On the ActivityLog I find these errors related to the extension assembly:

<entry>
   <record>403</record>
   <time>2015/09/08 13:08:00.424</time>
   <type>Error</type>
   <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
   <description>Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.</description>
   <path>C:\USERS\LFFIGUEIREDO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\2RVE2ZRA.BGI\ReasonCodeExample.XPathInformation.dll</path>
</entry>
<entry>
   <record>404</record>
   <time>2015/09/08 13:08:00.424</time>
   <type>Error</type>
   <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
   <description>Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
   <path>C:\USERS\LFFIGUEIREDO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\2RVE2ZRA.BGI\ReasonCodeExample.XPathInformation.dll</path>
</entry>
<entry>
   <record>405</record>
   <time>2015/09/08 13:08:00.424</time>
   <type>Error</type>
   <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
   <description>Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
   <path>C:\USERS\LFFIGUEIREDO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\2RVE2ZRA.BGI\ReasonCodeExample.XPathInformation.dll</path>
</entry>
<entry>
   <record>406</record>
   <time>2015/09/08 13:08:00.424</time>
   <type>Error</type>
   <source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
   <description>Could not load file or assembly &apos;Microsoft.VisualStudio.Text.UI.Wpf, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
   <path>C:\USERS\LFFIGUEIREDO\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\2RVE2ZRA.BGI\ReasonCodeExample.XPathInformation.dll</path>
</entry>
...
<entry>
   <record>428</record>
   <time>2015/09/08 13:08:00.570</time>
   <type>Information</type>
   <source>VisualStudio</source>
   <description>Begin package load [XPathInformationPackage]</description>
   <guid>{253AA665-A779-4716-9DED-5B0C2CB66710}</guid>
</entry>
<entry>
   <record>429</record>
   <time>2015/09/08 13:08:00.571</time>
   <type>Error</type>
   <source>VisualStudio</source>
   <description>CreateInstance failed for package [XPathInformationPackage]</description>
   <guid>{253AA665-A779-4716-9DED-5B0C2CB66710}</guid>
   <hr>80070002</hr>
   <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
   <record>430</record>
   <time>2015/09/08 13:08:00.571</time>
   <type>Error</type>
   <source>VisualStudio</source>
   <description>End package load [XPathInformationPackage]</description>
   <guid>{253AA665-A779-4716-9DED-5B0C2CB66710}</guid>
   <hr>80004005 - E_FAIL</hr>
   <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>

Researching a little, I'd venture a guess it's something to do with the way the project references are handled when the project was updated to VS2013: http://stackoverflow.com/questions/25606632/how-can-a-vs-extension-target-multiple-versions-in-regard-to-microsoft-visualstu

For now, I've resorted to building an older version of the extension myself, with the commit from late April as HEAD, since there's no archive of older versions of this extension.

fernandofig commented 9 years ago

That fixed it. Thanks a lot!

uli-weltersbach commented 9 years ago

My pleasure, thank you for reporting the issue! If you find the plugin helpful, consider rating it on https://visualstudiogallery.msdn.microsoft.com/c06c7b10-41c3-4aa9-8707-570eb9d879e6 ;)