Closed rSeeFip closed 2 years ago
or u can add binding redirects to this version in your machine.config, or XpandModelEditor has an option to do the same in the VSIX setting an enviromental variable to provide a custom app.config wher u can again set the binding redirect
i will try, thanks a lot
I had to set all of these to get the ME to load, and in the end it crashes on Xpand.XAF.Modules.Reactive.ReactiveModule.Setup();
VSIX appears to do nothing, as I also had to place an Xpand.Xpo.dll into C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE
`
</runtime>`
posting a sample demostrating the issue that uses nuget will help tracing down the problem, like this i cannot say much more than analyzing your statement
VSIX appears to do nothing
actually it copies the assemblies from bin to a specific folder on each build and logs the operation in the VS output window.
as I also had to place an Xpand.Xpo.dll
it might be the case in some old versions but such workaround will lead to futher problems in your system as you will probably forget it there and will cause other issues when you upgrade. I suggest you upgrade to the latest and provide detailed sample.
finally i guess that XpandModelEditor as an out of VS process exe should work fine
but such workaround will lead to futher problems in your system as you will probably forget it there and will cause other issues when you upgrade
another related suggestion is to try open your solution on a clean machine so to verify that does not relate to your local system. HyperV VM are build in Windows and I use them constantly for similar cases
posting a sample demostrating the issue that uses nuget will help tracing down the problem, like this i cannot say much more than analyzing your statement
VSIX appears to do nothing
actually it copies the assemblies from bin to a specific folder on each build and logs the operation in the VS output window.
as I also had to place an Xpand.Xpo.dll
it might be the case in some old versions but such workaround will lead to futher problems in your system as you will probably forget it there and will cause other issues when you upgrade. I suggest you upgrade to the latest and provide detailed sample.
finally i guess that XpandModelEditor as an out of VS process exe should work fine
I'm removing all unnecessary Xpand nuget packages and Mono packages that were added automatically, trying to stop any version mismatches that get created.
Will delete that xpo.dll, also and try to start clean. Problem is that I haven't installed anything other than the xpand VSIX, and I've migrated all of my projects to the new VS2017+ project style which reference packages from nuget. During this process it added some extra packages that cause version mismatches.
Because expand isn't installed locally anymore, and there's nothing in GAC everything depends on packages resolving the right versions nicely and this is not happening for me at the moment.
If this housecleaning fails, I'll try the external model editor. Thanks as always!
yeah i admit and feel your pain we all learn in the process, my solution to this problem is to eliminate the unknowns in the equation as so a simple test in a clean VM taking extra carefull not to install anything is very valuable. It establish a reproducible contract and if is reproducible it can be solved.
yeah i admit and feel your pain we all learn in the process, my solution to this problem is to eliminate the unknowns in the equation as so a simple test in a clean VM taking extra carefull not to install anything is very valuable. It establish a reproducible contract and if is reproducible it can be solved.
Setting it up as we speak! :)
Hi @apobekiaris,
I spent a lot of time removing all **Xpand.XAF.Module.*** packages from my projects which are included in eXpandLib and similar projects which are v 701 from nuget.org. This removed version mismatches. I then tried to open the model editor on a fresh Windows 10 machine and it didn't work. The DevExpress installed editor works fine on projects without Expand Modules, but not on any with Expand Modules.
Steps to reproduce:
Downloaded this Windows 10 Development Image from Microsoft
Installed .NET 4.8 Targeting Pack.
ExecutedInstall-Package Xpand.XAF.ModelEditor -Scope CurrentUser
Tried to execute "C:\Users\User\AppData\Local\PackageManagement\NuGet\Packages\Xpand.XAF.ModelEditor.1.201.6\build\Xpand.XAF.ModelEditor.exe"
it didn't work.
Installed DevExpress 2020.1.7 to get DevExpress Model Editor out of the box in Visual Studio.
Tried to open Model.Xafml on Windows project. It failed asking for elevated permissions.
Run as Administrator and had another error, not sure exactly what it was.
Installed Latest v701 VSIX plugin from here reloaded Visual Studio with Administrative rights.
Tried to open same Model.xafml by double clicking from visual studio (again using built in DX editor) ... missing Xpand.Xpo.dll in Community/common7/ide.
... What am I missing here? I can build you a sample solution. My DX2017 installation wasn't needed for my solution to compile.
\Xpand.ExpressApp.Modules\ViewVariants\XpandViewVariantsModule.cs:line 27 at MyProject.Win.MyProjectWindowsFormsApplication.InitializeComponent() in C:\Users\User\source\repos\MyProjecttemp\MyProject.Win\WinApplication.Designer.cs:line 64 at MyProject.Win.MyProjectWindowsFormsApplication..ctor() in C:\Users\User\source\repos\MyProjecttemp\MyProject.Win\WinApplication.cs:line 25 at Create_MyProjectWindowsFormsApplication() at DevExpress.ExpressApp.Utils.Reflection.TypeData.CreateInstance(Object[] args) ----------InnerException---------- **Could not find file 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\common7\ide\Xpand.Xpo.dll'.** ----------StackTrace---------- at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at Xpand.Persistent.Base.General.XpandModuleBase.AssemblyResolver.Resolve(AssemblyNameReference name) in D:\a\1\s\Xpand\Xpand.Persistent\Xpand.Persistent.Base\General\XpandModuleBase.cs:line 623 at Mono.Cecil.MetadataResolver.Resolve(TypeReference type) at Mono.Cecil.TypeReference.Resolve() at Xpand.Extensions.Mono.Cecil.MonoCecilExtensions.<BaseClasses>d__0.MoveNext() in D:\a\1\s\src\Extensions\Xpand.Extensions.Mono.Cecil\BaseClasses.cs:line 9 at System.Linq.Enumerable.Any[TSource](IEnumerable
1 source, Func2 predicate) at Xpand.Extensions.Mono.Cecil.MonoCecilExtensions.IsSubclassOf(TypeDefinition childTypeDef, TypeDefinition parentTypeDef) in D:\a\1\s\src\Extensions\Xpand.Extensions.Mono.Cecil\IsSubclassOf.cs:line 6 at Xpand.Persistent.Base.General.XpandModuleBase.<>c__DisplayClass99_0.<LoadAssemblyRegularTypes>b__1(TypeDefinition definition) in D:\a\1\s\Xpand\Xpand.Persistent\Xpand.Persistent.Base\General\XpandModuleBase.cs:line 636 at System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()
at Xpand.Persistent.Base.General.XpandModuleBase.LoadAssemblyRegularTypes() in D:\a\1\s\Xpand\Xpand.Persistent\Xpand.Persistent.Base\General\XpandModuleBase.cs:line 637
at Xpand.Persistent.Base.General.XpandModuleBase..cctor() in D:\a\1\s\Xpand\Xpand.Persistent\Xpand.Persistent.Base\General\XpandModuleBase.cs:line 112`
Thank you for the 762 suggestions, when I upgraded to 703.1 from xpandnuget server prior to you publishing 703.0 officially. This change, plus a machine.config binding redirect (for mono.cecil) solved most of the prior issues. I also just updated VSIX to the 703 you published.
This got me a lot further and I had to clean up and rebuild my WinApplication.designer file. Had strange issues with audit trail then removed that entirely from the solution and now I'm stuck on a DX error when loading the model.
I also tried your Xpand.XAF.ModelEditor package directly into my Windows project but it wouldn't build due to PowerShell errors. Something about paket.
All in all I think this DX error is related to me using the new CSPROJ package format and it doesn't know how to deal with it. I might need to pay for some support here because I need to merge some of these models upward and it's urgent.
All DX & Xpand references are from NuGet.org officially or from Xpand's Nuget server. I'm not using anything compiled locally or modified in any way.
DEV MACHINE 1
at DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.GetComponentFromDesigner[ComponentType](ProjectItem projectItem, ITypesInfo typesInfo)
at DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.GetXafApplicationByDesigner(Project project)
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)
DEV MACHINE 2
at DevExpress.ExpressApp.Design.ModelEditor.ModelLoader.GetXafApplicationByDesigner(Project project) 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)
I also tried your Xpand.XAF.ModelEditor package directly into my Windows project but it wouldn't build due to PowerShell errors. Something about paket
If you use the eXpand* assemblies VSIX is a requirement due to ModelMapper dependencies for supporting the XAF modeleditor. To this end the VSIX copies all assemlbies from the bin to devEnvInstallationFolder\CommonExtensions\DataDesign and this helps XAF model editor to locate the assemblies.
The XpandModelEditor wiki I posted before does not mention that u have to install the XpandModelEditor package instead it says that the VSIX has the XpandModelEditor embeded. So remove that package cause is of no use to you.
Read the wiki link I posted before carefully please
https://user-images.githubusercontent.com/159464/75141828-769c7800-56fa-11ea-9498-49374bb96fae.png
the stack traces you posted are missing context that relates to Xpand operations so I cannot suggest anything.
Hi @apobekiaris,
In this documentation please consider removing the Installation section from the top, or adding a note next to it that says something like "See VSIX section below for use, as this component is bundled with Xpand.VSIX visual studio plugin." .
I had re-read it a bunch of times but always started with the Installation as a first step. On both my development machines XAF Model List doesn't load. On machine 1 it is a white box that doesn't initiate a build process. On machine 2 it is a transparent box which opens Output window, switches to Xpand output source and prints that three projects (VSTO projects) are invalid. All three are actually not loaded in the solution.
Can I please connect with you on Skype, Teams or TeamViewer and you invoice me for it? I'll wake up early tomorrow to accommodate your time zone and schedule.
Forgot to mention that Xpand.XAF.ModelEditor was added as custom command and does nothing. It starts a command prompt window for a second and closes.
transparency is a VS issue u can resolve it by by unchecking the VS/Options/Enviroment/Optimize Rendering
Can I please connect with you on Skype, Teams or TeamViewer and you invoice me for it? I'll wake up early tomorrow to accommodate your time zone and schedule.
if you require private support hours fell free to contact me by email it is available in my profile https://github.com/apobekiaris
Optimize Rendering helped a lot! THANK YOU!
Modules list loads now and quite a few open up, but some crash with the following in Event Viewer. It's nice that it shows the command it's executing so I can try to debug it.
I'll shoot you an email in an hour or so if I'm still stuck, to set up something for tomorrow / weekend.
Application: Xpand.XAF.ModelEditor637365614812685150.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidCastException at DevExpress.XtraRichEdit.Layout.TablesControllerTableState.LeaveCurrentTable(Boolean, Boolean) at DevExpress.XtraRichEdit.Layout.TablesController.LeaveCurrentTableCore() at DevExpress.XtraRichEdit.Layout.TablesController.LeaveCurrentTable(DevExpress.XtraRichEdit.Model.TableCell) at DevExpress.XtraRichEdit.Layout.Engine.RowsController.BeginParagraph(DevExpress.XtraRichEdit.Model.Paragraph, DevExpress.XtraRichEdit.Layout.Engine.LineFormatterBeginParagraphFlags) at DevExpress.XtraRichEdit.Layout.Engine.LineFormatter.BeginParagraph(DevExpress.XtraRichEdit.Layout.Engine.LineFormatterBeginParagraphFlags) at DevExpress.XtraRichEdit.Layout.Engine.LineFormatter.BeginParagraphFormatting(DevExpress.XtraRichEdit.Layout.Engine.ParagraphBoxIterator, DevExpress.XtraRichEdit.Layout.Engine.LineFormatterBeginParagraphFlags) at DevExpress.XtraRichEdit.Layout.Engine.BeginParagraphFormatting.FormatParagraph() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.FormatParagraphCore() at DevExpress.XtraRichEdit.Layout.Engine.ParagraphFormatter.FormatParagraph() at DevExpress.XtraRichEdit.Layout.Engine.BackgroundFormatter.PerformPrimaryLayoutCore() at DevExpress.XtraRichEdit.Layout.Engine.BackgroundFormatter.WaitForPrimaryLayoutReachesLogPosition(DevExpress.XtraRichEdit.Model.DocumentLogPosition) at DevExpress.XtraRichEdit.RichEditView.EnsureFormattingCompleteForLogPosition(DevExpress.XtraRichEdit.Model.DocumentLogPosition) at DevExpress.XtraRichEdit.Layout.DocumentLayoutPosition.UpdateCore(DevExpress.XtraRichEdit.Layout.PageCollection, DevExpress.XtraRichEdit.Layout.DocumentLayoutDetailsLevel) at DevExpress.XtraRichEdit.Layout.DocumentLayoutPosition.Update(DevExpress.XtraRichEdit.Layout.PageCollection, DevExpress.XtraRichEdit.Layout.DocumentLayoutDetailsLevel, Boolean) at DevExpress.XtraRichEdit.Layout.CaretPosition.Update(DevExpress.XtraRichEdit.Layout.DocumentLayoutDetailsLevel) at DevExpress.XtraRichEdit.Ruler.HorizontalRulerControl.CanUpdate() at DevExpress.XtraRichEdit.RichEditControl.UpdateRulers() at DevExpress.XtraRichEdit.Internal.InnerRichEditControl.PerformRaiseDeferredEventsCore(DevExpress.XtraRichEdit.Model.DocumentModelChangeActions) at DevExpress.XtraRichEdit.Internal.InnerRichEditDocumentServer.RaiseDeferredEventsCore(DevExpress.XtraRichEdit.Model.DocumentModelChangeActions) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()
The pre-release 2.201.17.1 in the DevExpress.XAF lab
branch includes commits that relate to this task:
To minimize version conflicts we recommend that you use the Xpand.XAF.Core.All, Xpand.XAF.Win.All, Xpand.XAF.Web.All packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all.
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.
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
After installing XAF nugets v2.202.39.3 from lab the issue #752 is closed, but now i can't open Model Editor or Designer of f.e. Module.
I got issue Xpand.Extension 2.202.45.0 is missed, sure because i have 2.202.46.1 from nuget