Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.ICOMPropertyBag'
See original GitHub issueUpon opening one of many solutions I am getting this error. The error happens everytime I open this one solution, other solutions can be opened without an error.
Except the annoyance of closing the message box everytime I open the solution, I don’t see any other issues. Everything seems to work eg. commiting/updating and everything else ankh has to offer, just this error message upon opening the solution, nothing more nothing less.
Unable to cast object of type ‘Microsoft.VisualStudio.CommonID.Solutions.SolutionPropertyBag’ to type ‘Ankh.Scc.Native.ICOMPropertyBag’
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)
os-version=10.0.22000.0
vs-version=17.0.32408.312
svn-version=1.14.1
sharpsvn-version=1.14001.54.0
ankh-version=2.9.89.0
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top GitHub Comments
I just encountered this issue after installing VS 2022 17.2, so I’ve installed the last successful build and restarted without encountering the issue again.
PS are you planning to publish to Marketplace?
Interesting issue. Looks like the code in vs was converted to managed without proper com compatibility… We need a fix there.