AnkhSVN icon indicating copy to clipboard operation
AnkhSVN copied to clipboard

Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag'

Open bpeikes-tl opened this issue 1 year ago • 4 comments

Saw the old post about this error, so I tried getting most recent version of vsix, but still get the error.

Doesn't happen with all solutions. Visual Studio 2022 - Version 17.7.4 Ankh SVN extension - Downloaded artifact from MSBuild #160

Visual Studio showing version of extension as 2.9.87.0

System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag'. at Ankh.VSPackage.AnkhSvnPackage.ReadSolutionProps(IVsHierarchy pHierarchy, String pszProjectName, String pszProjectMk, String pszKey, Int32 fPreLoad, IPropertyBag pPropBag)

bpeikes-tl avatar Jan 22 '24 18:01 bpeikes-tl

My version number shows 2.9.120, so I suspect you didn't install a version with the fix.

Rand-Random avatar Jun 03 '24 16:06 Rand-Random

@Rand-Random Where did you found the newer Version 2.9.120? On the release page there is just 2.9.87.

Thank you

popy2k14 avatar Jun 12 '24 06:06 popy2k14

Have another look at https://github.com/AmpScm/AnkhSVN/issues/44

updated the issue and included the version that I downloaded while the build actions/artifacts where still running/not expired.

Sadly there is no official released version with the fix, you can see a plea for a release here https://github.com/AmpScm/AnkhSVN/issues/57

Rand-Random avatar Jun 12 '24 07:06 Rand-Random

thanks a lot, as the time you wrote your message i already found your post with the fixed version :-)

popy2k14 avatar Jun 12 '24 07:06 popy2k14