question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Upon 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)

image

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:open
  • Created a year ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
MadGavcommented, May 13, 2022

If you click on Actions in the project and look at the last successful build, you should see artifacts that you can download… These are vsix packages that can be installed in VS

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?

3reactions
rhuijbencommented, Apr 24, 2022

Interesting issue. Looks like the code in vs was converted to managed without proper com compatibility… We need a fix there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AnkhSVN Error in Visual Studio 2022 17.2.5
This issue has been solved in new versions of this extension. The developper of this Visual Studio's extension do not publish it's ...
Read more >
Solved: Unable to cast object of type 'Microsoft.Mashup.Ho...
Solved: Hi, after upgrading PowerBI to the latest version, I'm receiving the error when I open my dashboard: Unable to cast object of...
Read more >
unable to cast object of type to type
I clicked "Enable" and it appears many times. Here is the stack trace: System.InvalidCastException : Unable to cast object of type 'Microsoft.CodeAnalysis.
Read more >
Unable to cast object of type 'Microsoft. ...
Azure Native ISV Services. Unable to cast object of type 'Microsoft.VisualStudio.DesignTools.WpfDesigner.InstanceBuilders.StandInPopup' to type 'System.
Read more >
问答- 腾讯云开发者社区-腾讯云
InvalidCastException : Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.SolutionPropertyBag' to type 'Ankh.Scc.Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found