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.

Exception in Visual Studio 2022 (version 17.2.0) when opening a solution that uses AnhSvn

See original GitHub issue

I’ve successfully used AnkhSVN version 2.9.87 with Visual Studio 2022 (internal version < 17.2). Now I’ve updated to VS2022 version 17.2. When I now open a solution file that uses AnkhSvn I get this exception:

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)

Afterwards Visual Studio freezes.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:11
  • Comments:10

github_iconTop GitHub Comments

3reactions
agausachscommented, Nov 7, 2022

MSBuild 121 action has expired so there’s not a solution in this moment. Please, update the VSIX on the Marketplace if possible. Thanks!

1reaction
Julimuzcommented, May 19, 2022

Yes, after #44 now is working, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

AnkhSVN Error in Visual Studio 2022 17.2.5
I have change the solution following your guidance, and another error happened The source control provider associated with this solution could ...
Read more >
AnkhSVN is not working with newest Version of VS
This issue appears to be identical to https://developercommunity.visualstudio.com/content/problem/215300/ankhsvn-causes-projects-not-to-load.
Read more >
Vs 2022 continue crash: KernelBaseDll error - Microsoft Q&A
I've Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.2.5. In one of my solution (the only where i work actually) VS ......
Read more >
AnkhSVN pending changes window throws exception in ...
I'm using AnkhSVN as source control plug-in. When opening the Pending Changes window in Visual Studio 2019 an exception occur. An internal error...
Read more >
VisualSVN for Visual Studio 2022
Easy and powerful Subversion (SVN) integration for VS2022. Everything you need to work smoothly with version control and advanced features such ...
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