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

ambiguous machtes issue by open complex DashboardView #654

Closed rSeeFip closed 4 years ago

rSeeFip commented 4 years ago

One Month ago i got the ambiguous matches issue by opening login Window, with Release 19.2.301.9.

You fixed it by change on ModelMapper by at PredefinedMapServices GetViewControl on with :

if (new[]{PredefinedMap.XafLayoutControl,PredefinedMap.SplitContainerControl}.Any(map => map==predefinedMap)){
var value = view.GetPropertyValue(nameof(CompositeView.LayoutManager));
return value.GetType().Properties(nameof(LayoutManager.Container)).First().GetValue(value);
}

Now, with actual release i got this error by opening an Dashboard View, which includes 2 Chart Views, 1 GridView and 1 ListView.

it occurs again by Modelmapperservice BindData like last time.

The actual stacktrace is

Mehrdeutige รœbereinstimmung gefunden.

   bei System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
   bei System.Type.GetProperty(String name, BindingFlags bindingAttr)
   bei Fasterflect.PropertyExtensions.Property(Type type, String name, Flags bindingFlags)
   bei Fasterflect.Emitter.LookupUtils.GetMember(CallInfo callInfo)
   bei Fasterflect.Emitter.MemberGetEmitter.CreateDelegate()
   bei Fasterflect.Emitter.BaseEmitter.GetDelegate()
   bei Fasterflect.PropertyExtensions.DelegateForGetPropertyValue(Type type, String name, Flags bindingFlags)
   bei Fasterflect.PropertyExtensions.GetPropertyValue(Object obj, String name, Flags bindingFlags)
   bei Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.BindData(ValueTuple`3 data, Object control)
   bei Xpand.XAF.Modules.ModelMapper.Services.ModelBindingService.<>c.<ViewModelProperties>b__9_1(ValueTuple`3 _)
   bei System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
--- Ende der Stapelรผberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelรถst wurde ---
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   bei System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
   bei System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.HalfSerializer.ForwardOnError[T](ISink`1 sink, Exception ex, Int32& wip, Exception& error)
   bei System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnError(Exception error)
   bei System.Reactive.AutoDetachObserver`1.OnErrorCore(Exception exception)
   bei System.Reactive.ObserverBase`1.OnError(Exception error)
   bei System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   bei System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnError(Exception error)
   bei System.Reactive.Sink`2.OnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Linq.ObservableImpl.Merge`1.Observables._.InnerObserver.OnError(Exception error)
   bei System.Reactive.AutoDetachObserver`1.OnErrorCore(Exception exception)
   bei System.Reactive.ObserverBase`1.OnError(Exception error)
   bei System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Sink`1.ForwardOnError(Exception error)
   bei System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   bei System.Reactive.Sink`1.ForwardOnNext(TTarget value)
   bei System.Reactive.Linq.ObservableImpl.SelectMany`2.EnumerableSelector._.OnNext(TSource value)
   bei System.Reactive.Sink`1.ForwardOnNext(TTarget value)
   bei System.Reactive.IdentitySink`1.OnNext(T value)
   bei System.Reactive.Subjects.Subject`1.OnNext(T value)
   bei System.Reactive.Sink`1.ForwardOnNext(TTarget value)
   bei System.Reactive.IdentitySink`1.OnNext(T value)
   bei System.Reactive.Sink`1.ForwardOnNext(TTarget value)
   bei System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   bei System.Reactive.Sink`1.ForwardOnNext(TTarget value)
   bei System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value)
   bei System.Reactive.Linq.ObservableImpl.SelectMany`2.ObservableSelector._.InnerObserver.OnNext(TResult value)
   bei System.Reactive.Subjects.Subject`1.OnNext(T value)
   bei System.EventHandler.Invoke(Object sender, EventArgs e)
   bei DevExpress.ExpressApp.View.OnControlsCreated()
   bei Xpand.ExpressApp.XpandListView.OnControlsCreated()
   bei DevExpress.ExpressApp.View.CreateControls()
   bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.EnsureViewControl()
   bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.FillViewSite()
   bei DevExpress.ExpressApp.Win.Templates.ViewSiteManager.viewSiteControl_HandleCreated(Object sender, EventArgs e)
   bei System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
   bei DevExpress.XtraEditors.XtraScrollableControl.OnHandleCreated(EventArgs e)
   bei DevExpress.XtraEditors.PanelControl.OnHandleCreated(EventArgs e)
   bei System.Windows.Forms.Control.WmCreate(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei DevExpress.XtraEditors.XtraScrollableControl.WndProc(Message& m)
   bei DevExpress.Utils.Controls.PanelBase.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
apobekiaris commented 4 years ago

can you first try to make sure which control is the one that fails (most probably is the chart) by removing the other parts from the dashboard and testing again.

rSeeFip commented 4 years ago

it occurs by chart and pivotgrid

apobekiaris commented 4 years ago

ok i will try patch it for all, wait for an update

apobekiaris commented 4 years ago

at the moment there is a fail build however u may test the attached assemblies by adding them to your C:\Users\Tolis.nuget\packages\xpand.xaf.modules.modelmapper\YOURLATESTVERSION\lib\net461\ whereas first u run

Remove-VersionConverterFlags

bin.zip

let me know if the problem is resolved and please not that these assemblies are not tested as the build fails

rSeeFip commented 4 years ago

are you sure the file is right, the filedate is 20.12.19

after following your instructions nothing changed, so i copy the file to gac and then i get image

apobekiaris commented 4 years ago

hmmm unfortunately this fast workaround I attempted won't work they versioned different. If you are in a hurry your only option at the moment is to compile the lab branch else u have to wait for the build to pass.

rSeeFip commented 4 years ago

yes i need it but when i try to build lab Modules i have same issue like by build master Modules #653

apobekiaris commented 4 years ago

You did not reply back to my last comment so I assume you manage it. Please let me know why the build fails while respecting my last comment

apobekiaris commented 4 years ago

use #653

rSeeFip commented 4 years ago

Sorry to less time because i have recognized this error in productive system :-(

apobekiaris commented 4 years ago

what this mean?

rSeeFip commented 4 years ago

for deeper inspect what fails in modules build

expand commented 4 years ago

The DevExpress.XAF repository includes commits that relate to this task:

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 the Xpand.XAF.Modules 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.

expand commented 4 years ago

The DevExpress.XAF repository includes commits that relate to this task:

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 the Xpand.XAF.Modules 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.

rSeeFip commented 4 years ago

the Application works, but by starting in debug mode, after login, some ambiguos matches issues thrown on reflecting. stack comes asap

expand commented 4 years ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.