Closed laceratione closed 4 years ago
Error details:
at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModules(ApplicationModulesManager applicationModulesManager)
at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModulesPatch(ApplicationModulesManager __instance)
at SetupModules_Patch1(ApplicationModulesManager )
at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo)
at DevExpress.ExpressApp.Utils.DesignerModelFactory.CreateModulesManager(ModuleBase module, String assembliesPath, List1 additionalModules, ISecurityStrategyBase securityInstance) at DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.LoadModel(ITypeDiscoveryService typeDiscoveryService, ITypeResolutionService typeResolutionService, String targetDiffFileName, IDisposable& obj) at DevExpress.ExpressApp.Design.ModelEditor.EditorPane.CreateModelEditorController() at DevExpress.ExpressApp.Design.ModelEditor.EditorPane.PrivateInit(String fileName, ProjectItem currentProjectItem, IVsHierarchy pvHier) ----------InnerException---------- The type initializer for 'Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService' threw an exception. ----------StackTrace---------- at Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService.Extend(ApplicationModulesManager modulesManager, PredefinedMap map, Action
1 configure)
at Xpand.ExpressApp.TreeListEditors.Win.XpandTreeListEditorsWinModule.Setup(ApplicationModulesManager moduleManager)
at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModules(ApplicationModulesManager applicationModulesManager)
----------InnerException----------
Could not load file or assembly 'Xpand.ExpressApp.Win, Version=19.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
----------StackTrace----------
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService.GetAssembly(Assembly[] assemblies, String name, Boolean partialMatch)
at Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService.Init()
at Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService..cctor()
----------InnerException----------
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Could not load file or assembly 'Xpand.ExpressApp.Win, Version=19.2.6.0
this is an invalid version our packages versions are 19.2.60x.x. Did you custom compile the source code?
we use installation script from GitHub "Set-ExecutionPolicy Bypass -Scope Process -Force;iex "$(([System.Net.WebClient]::new()).DownloadString('http://install.expandframework.com'));Install-Xpand -Assets @('Assemblies','Nuget','VSIX','Source') #-Version '19.2.602.0' -SkipGac -InstallationPath 'C:\Solution'"
check the version Xpand.ExpressApp.Win manually please and let me know what they say
19.2.602.0
i will get back to u once I research it a bit
We will try to answer all questions that do not require research within 24hr. To prioritize cases that require research we use the following labels in order. For all other issues the posting time is respected.
This case is prioritized.
the lab contains related work can u also try if it already fixed?
Installed 19.2.602.3 but didnt help, we get the same problem
Can you repro it on a sample?
do you have installed the VSIX? it is a requirement if u try to use the ME from within VS. In any case it won't allow u to open the model if VSIX not found with a prompt to install VSIX
Can you repro it on a sample?
I created a new clean Xpand project and ModelEditor works ok there. But still doesnt work in a big project
do you have installed the VSIX? it is a requirement if u try to use the ME from within VS. In any case it won't allow u to open the model if VSIX not found with a prompt to install VSIX
This one?
does the Xpand.ModelEditor works?
Are you asking about this one? Works in a new project but error in a big one
So i tried to install Xpand.XAF.ModelEditor on a clean project. After building it says:
Isnt that a mistake somewhere because it says "Paket" instead of "Packet" in commands?
Also i tried to open XAF Soultion Model List and its not loading also
add this function to your Get-DevExpressVersion.ps1 and try again it should compile now
function Get-PaketReferences {
[CmdletBinding()]
param (
[System.IO.FileInfo]$projectFile = "."
)
begin {
}
process {
$paketDirectoryInfo = $projectFile.Directory
$paketReferencesFile = "$($paketDirectoryInfo.FullName)\paket.references"
if (Test-Path $paketReferencesFile) {
Push-Location $projectFile.DirectoryName
$dependencies = dotnet paket show-installed-packages --project $projectFile.FullName --all --silent | ForEach-Object {
$parts = $_.split(" ")
[PSCustomObject]@{
Include = $parts[1]
Version = $parts[3]
}
}
Pop-Location
$c = Get-Content $paketReferencesFile | ForEach-Object {
$ref = $_
$d = $dependencies | Where-Object {
$ref -eq $_.Include
}
$d
}
Write-Output $c
}
}
end {
}
}
Ok this editor works in Solution.Win but still cant open in Solution.Module with the same problem
update: everything is working in a new test solution but for some reason fails in a big project
the problem is about conflicting versions evenmore u just mentioned that in Solution.Module u use the TreeListEditor.Win which is not valid to use a win module inside an agnostic.
The pre-release 2.201.0.3 in the DevExpress.XAF lab
branch includes commits that relate to this task:
Released packages:
Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.
If you do not use these packages directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.
Thanks a lot for your contribution.
Issue is deprioritized
as no Assignee found
and scheduled for auto-close
if no activity in the next 60 days
. Thanks a lot for your contribution.
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻 When I'm click on the "Open Model Editor" solution module, I get the following error occurs:"Exception occurs while initializing the 'Xpand.ExpressApp.TreeListEditors.Win.XpandTreeListEditorsWinModule' module: The type initializer for 'Xpand.XAF.Modules.ModelMapper.Services.PredefinedMapService' threw an exception." How to fix?