Comments (10)
I'll take a peek tonight. Sitecore 10.0.2 or Sitecore 10.2?
from synthesis.
Thank you! It's Sitecore 10.0.2.
from synthesis.
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:
- Check your solution for
UsedImplicitly
. Maybe there's an older model or something with that attribute on it? - 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.
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.
Hmmm. What version of Sitecore and Synthesis are you upgrading from? What other modules do you have installed other than Synthesis?
from synthesis.
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.
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.
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.
Thank you so much, that worked! I updated Unicorn to 4.1.6 and now the error is gone.
from synthesis.
Glad I could help!
from synthesis.
Related Issues (20)
- "Multilist with Search" field type missing from standard configuration HOT 3
- Regenerate Now button goes to notfound page HOT 25
- IStandardTemplateItem.Add overload that takes a newItemID HOT 3
- Add flexibility with ResilientExecuteRenderer to allow customized exception behavior HOT 2
- Add ability to use TestHyperLink ToLinkField() and determine if the link type is external or internal
- Synthesis issue with sitecore jss 15.1 HOT 3
- Bug: HyperlinkField.Href not working for Media using Insert Link HOT 4
- Sitecore Forms disappear from form listing after Synthesis Solr search is run HOT 3
- Image in Editor adding width and height properties HOT 3
- IHyperLinkField RenderWithBody usage HOT 1
- PackageReference usage for Synthesis NuGet causes incorrect deployment for config files. HOT 1
- Can't keep customer or partner name in naming helix projects (project namespace) as Synthesis.model.cs throws error HOT 10
- ContainsOr with an ItemReferenceListField doesn't work
- Access Denied message even though logged into Sitecore HOT 3
- Synthesis 9.1.0.2 in Sitecore 9.3 HOT 9
- Not able to rebuild models HOT 10
- Images do not render from Content Hub DAM HOT 5
- Unpublished datasources results in exception in debug mode HOT 11
- Sitecore namespace conflicts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from synthesis.