eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

Can't use GetReferenceConflict, dll is missing #809

Closed vimarx closed 3 years ago

vimarx commented 3 years ago

๐——๐—ฒ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฏ๐—ฒ ๐˜๐—ต๐—ฒ ๐—ฏ๐˜‚๐—ด Get-ReferenceConflict : No se puede cargar el archivo o ensamblado 'mfcm140d.dll' ni una de sus dependencias. No se puede encontrar el mรณdulo especificado. En lรญnea: 1 Carรกcter: 1

apobekiaris commented 3 years ago

this does not relate to the module rather to your system

for e.g. see

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P720SAC#:~:text=This%20error%20occurs%20because%20one,Redistributable%20Update%203%20RC%20package.&text=Download%20the%20package%20from%20Microsoft%20Visual%20C%2B%2B%202015%20Redistributable%20Update%203%20RC.

also did u use powershell core to run the command?

vimarx commented 3 years ago

not core.... l

apobekiaris commented 3 years ago

the XpandPwsh is designed to work with Pwsh

vimarx commented 3 years ago

Installed Powershell 7.1 (last version) and

PS C:\TFS2020\F2011\PreSolicitud\PresolicitudW.Web\bin> Get-ReferenceConflict Get-ReferenceConflict: Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

apobekiaris commented 3 years ago

Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0

i suggest u try another machine this one looks problematic, this is a system assembly and from the version we can guess that somthing went wrong with your .net5.0 attempts

apobekiaris commented 3 years ago

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.

  1. โ‡๏ธ Exclusive-Services
    1. โค Bronze Sponsor
    2. โค Sponsor
    3. โค Backer
    4. Installation
    5. ShowStopper
    6. Nuget
    7. Contribution
    8. BreakingChange
    9. ReproSample
    10. Deployment
    11. must-have

This case is prioritized.

apobekiaris commented 3 years ago

also note that XpandPwsh is used from all Azure pipes so it installs fine as long as there is powershell core present, let me know how it goes

vimarx commented 3 years ago

It's weird 1) in Powershell 7.1, GetReferenceconflict CLOSES the PS Window! 2) Powershell 7.2 preview, raises Get-ReferenceConflict: Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

on the other hand I solved #800 partially, the web sites are running fine if I copy output dlls to another PC

apobekiaris commented 3 years ago

i recommend u spent 10 min to setup windows on hyper-v (build-in-windows) which is a vm with snapshots. Having a clean vm handy u can easily test and see if your system is to blame cause it works on mine and on Azure

vimarx commented 3 years ago

this may have a sense ? https://github.com/icsharpcode/ILSpy/issues/2228

vimarx commented 3 years ago

i recommend u spent 10 min to setup windows on hyper-v (build-in-windows) which is a vm with snapshots. Having a clean vm handy u can easily test and see if your system is to blame cause it works on mine and on Azure

I do not have any experience in hyper-v (only with VMware), can you provide a quick link about your suggested setup?

apobekiaris commented 3 years ago

yeah it about dotnet5.0 at least

hyperv is same like vmware however it by far better in my opinion performance wise, just do a start\hyperv manager and go with the menus to create a VM same as u do with VMWare.

But VMWare is also good if u have one u could test powershell and xpandpwsh there

CWolffIF commented 3 years ago

Hi,

I got the error

Get-ReferenceConflict : Could not load file or assembly 'Microsoft.Uev.CabUtil, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null'.
At line:1 char:1
+ Get-ReferenceConflict
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Get-ReferenceConflict], FileLoadException
+ FullyQualifiedErrorId : System.IO.FileLoadException,XpandPwsh.Cmdlets.GetReferenceConflict
apobekiaris commented 3 years ago

is it about the file?? (strange assembly for being in the bin) can u run it from an empty folder and not from your bin path?

vimarx commented 3 years ago

another W2019 (existing) give me the same (net core 5 ) related and in a third dev pc, the following PS C:\Program Files\PowerShell\7> Get-ReferenceConflict Get-ReferenceConflict: Could not load file or assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

CWolffIF commented 3 years ago

is it about the file?? (strange assembly for being in the bin) can u run it from an empty folder and not from your bin path?

No the file is not in path. It is locate in c:\Windows\System32

Same error on an empty folder.

CWolffIF commented 3 years ago

It runs from the c:\Windows\system32 folder.

PS C:\WINDOWS\system32> get-referenceconflict -path "C:\DevProjects\iXISIF\iXISXRM.Win\bin\Debug"

OK.

apobekiaris commented 3 years ago

Get-ReferenceConflict Get-ReferenceConflict: Could not load file or assembly 'System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

i cannot repro in a clean VM sorry for not tried b4, it looks like the dynamic assembly loading uses a strategy max and with the donnet5 release it gets confused.

apobekiaris commented 3 years ago

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.