After testing the code to use the opengraph class from this article.


I decided to remove the config and class code, I started getting this issue.

Could not load type 'Sitecore.XA.Foundation.SitecoreExtensions.Services.IPassthroughService' from assembly 'Sitecore.XA.Foundation.SitecoreExtensions, Version=, Culture=neutral, PublicKeyToken=null'.

I found that I have Sitecore.XA.Foundation.SitecoreExtensions dll but did not delete any dll when removing my extended class and config. I am lost why this issue has started showing up. I want to resolve this without a full new installation of Sitecore 10.2.

  • That looks like wrong version of the dll. Compare it with the one from clean Sitecore setup. Most probably you referenced wrong nuget package version while developing your code.
    – Marek Musielak
    Commented Jun 12, 2023 at 15:57
  • Thanks all for your help, I fixed this by getting a clean version Sitecore binaries and this resolved my issue.
    – HamofChi
    Commented Jun 13, 2023 at 16:47

2 Answers 2


Replace Sitecore.XA.Foundation.SitecoreExtensions.dll in bin folder with Version= will fix the issue.

You can also download Version from Graphical setup package for XP Single here and copy to your local instance without reinstalling Sitecore.

  1. Download the Graphical setup package for XP Single

  2. Extract Sitecore 10.1.0 rev. 005207 (Setup XP0 Developer Workstation rev. 1.2.2-r1).zip

  3. Find and Extract `Sitecore Experience Accelerator

  4. Go to Sitecore Experience Accelerator\Content\Website\bin

  5. Copy Sitecore.XA.Foundation.SitecoreExtensions.dll and place it into your local bin folder.

    enter image description here

Hope it helps!


You are getting this error because of a version mismatch between the Sitecore.XA.Foundation.SitecoreExtensions.dll that is deployed to the website, and the one that Sitecore is looking for. This can happen due to a variety of things, but I suspect you have a different version of Sitecore.XA.Foundation.SitecoreExtensions.dll in your code, and when you're publishing the site, the correct DLL is getting overwritten with the version referenced by the code. Make sure that the one you're referencing in your code matches the version of Sitecore that you're using.

So download the correct version of the Sitecore.XA.Foundation.SitecoreExtensions from nuget package manager as per your Sitecore version in the visual studio like this.

enter image description here

If you don't want to add this to your project, then you can create a test application, and using the nuget package manager you can download the DLL and deploy that one to your Sitecore site.

Hope this will solve your issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.