GithubHelp home page GithubHelp logo

Comments (10)

blipson89 avatar blipson89 commented on August 18, 2024

I'll take a peek tonight. Sitecore 10.0.2 or Sitecore 10.2?

from synthesis.

NCHANL avatar NCHANL commented on August 18, 2024

Thank you! It's Sitecore 10.0.2.

from synthesis.

blipson89 avatar blipson89 commented on August 18, 2024

Hi @NCHANL

Synthesis doesn't actually use the UsedImplictly attribute. This sounds incredibly familiar though, but I can't remember why.

Could you please check the following:

  1. Check your solution for UsedImplicitly. Maybe there's an older model or something with that attribute on it?
  2. Make sure all the dlls in your bin folder are for the correct version of Sitecore.
    • I strongly suspect you're going to find a Sitecore dll for the wrong version in your site's bin directory.

I've attached an XML file (Sitecore.Assemblies.Platform.txt) that contains the official Sitecore file versions for 10.0.2. If you run the following powershell script (update the two variables at the top) it'll tell you if your bin folder is clean:

$targetsFile = 'C:\PATH\TO\Sitecore.Assemblies.Platform.txt' #CHANGE ME
$binFolder = 'C:\inetpub\wwwroot\MYSITECOREINSTANCE\bin' #CHANGE ME

$foundMismatch = $false
$xml = Select-Xml -Path $targetsFile -XPath "/Project/ItemGroup/SitecoreAssemblies"
$xml | %{
    $officialVersion = $_.Node.FileVersion
    $dllName = $_.Node.Name
    if(!(Test-Path "$binFolder\$dllName")) {
        Write-Error "Missing File '$dllName'"
    } else {

        $dll = Get-Item -Path "$binFolder\$dllName"
        if ($dll.VersionInfo.FileVersion -ne $officialVersion) {
            Write-Error "Version Mismatch for '$dllName'. Expected: '$officialVersion', Found: '$($dll.VersionInfo.FileVersion)'"
            $foundMismatch = $true
        }
    }
}

Write-Host -ForegroundColor Green "Done!"
if ($foundMismatch) {
    Write-Host -ForegroundColor Yellow "Some dlls in the bin directory do not match official versions"
} else {
    Write-Host -ForegroundColor Green "The bin directory matches official versions"
}

from synthesis.

NCHANL avatar NCHANL commented on August 18, 2024

Hi @blipson89

Thanks for the script, it helped a lot.
Unfortunately, I still get the same error after fixing the version on all the .dll's, and I do not use UsedImplicitly anywhere in my code.

Do you have any other ideas as to what it may be?

Thanks in advance.

from synthesis.

blipson89 avatar blipson89 commented on August 18, 2024

Hmmm. What version of Sitecore and Synthesis are you upgrading from? What other modules do you have installed other than Synthesis?

from synthesis.

NCHANL avatar NCHANL commented on August 18, 2024

I am upgrading from Sitecore 9.0 to 10.0.2, and from Synthesis 9.0.1 to now 9.1.5.
I am also using Unicorn (4.1.3) and Solr (8.4.0).

It worked before I started upgrading Sitecore, so maybe there are some modules that Synthesis started/stopped using that are causing these issues?

It is specifically from the Synthesis.Startup.config, and the Synthesis.ControlPanel.config that these problems occur, maybe they are calling an external module, where I have the wrong version?

from synthesis.

blipson89 avatar blipson89 commented on August 18, 2024

Synthesis 9.1.5 is built against Sitecore 9 DLLs. The parts of the Sitecore API that Synthesis uses are really low-level and don't tend to change much between Sitecore versions, so every time Sitecore comes out with a new version, I test Synthesis against the newest version of Sitecore.

I've tested Synthesis against Sitecore 10.0.0 through 10.1.0. It's possible that maybe its interacting with something in your solution in a way that didn't break on my local.

What we can try is recompiling Synthesis against the Sitecore 10.0.2 dlls and seeing if that fixes the problem. Unfortunately, I won't be able to get to this until tomorrow evening. Once I've done that, I'll attach the updated NuGet packages to this ticket.

If you'd like to try this sooner, you can pull down the repo and try updating it.

from synthesis.

blipson89 avatar blipson89 commented on August 18, 2024

Unicorn 4.1.3 has the UsedImplictly attribute in it. It was removed in 4.1.6 (SitecoreUnicorn/Unicorn#416)

While Synthesis is the one throwing the error, it's not the source. Could you try updating Unicorn to 4.1.6 or higher?

from synthesis.

NCHANL avatar NCHANL commented on August 18, 2024

Thank you so much, that worked! I updated Unicorn to 4.1.6 and now the error is gone.

from synthesis.

blipson89 avatar blipson89 commented on August 18, 2024

Glad I could help!

from synthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.