Closed devtka closed 2 years ago
without a sample I cannot help much
Good Morning,
ok, if you change to AuthenticationStandard, you will get this Error. See the Code below:
Comes from RXApp.cs Line 112-122
static IObservable<XafApplication> PatchAuthentication(this XafApplication application) => application.WhenSetupComplete() .Do(_ => { var harmony = new Harmony("aaa"); if (application.Security.IsInstanceOf("DevExpress.ExpressApp.Security.SecurityStrategyBase")){ var methodInfo = ( application.Security)?.GetPropertyValue("Authentication")?.GetType().GetMethod("Authenticate"); if (methodInfo != null){ harmony.Patch(methodInfo, new HarmonyMethod(GetMethodInfo(nameof(Authenticate)))); } } });
Good Morning,
exactly same Error here
this code is EasyTested and called from our TestApplication however it works there and all tests are green. Please try on an empty XAF solution where u install all nuget packages you use in your solution and configure init parts such as security. Post the sample for examination. Note I do not accept solutions reference directly the assemblies, only the nuget packages cause they contain logic we might miss.
Thanks for the understanding
I found a related case hopefully it same as yours with a custom AuthenticationActiveDirectory, the bot will notify u once fixed
The pre-release 2.201.15.3 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.
with actual lab v2.202.39.3 problem is solved for me
thanks
Thanks alot, great Work apobekiaris! I will try today and check
Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.
Good Morning, with Version 20.1.602 i have following Error before Login! Security Strategie Complex, XpandRole and XpandUser If i use XpandPermissionPolicyRole, i dont get this Error. Can you assist me, what i can do!?
You can only patch implemented methods/constructors. Path the declared method virtual System.Object DevExpress.ExpressApp.Security.AuthenticationStandard::Authenticate(DevExpress.ExpressApp.IObjectSpace objectSpace) instead.
at HarmonyLib.PatchProcessor.Patch() at HarmonyLib.Harmony.Patch(MethodBase original, HarmonyMethod prefix, HarmonyMethod postfix, HarmonyMethod transpiler, HarmonyMethod finalizer) at Xpand.XAF.Modules.Reactive.RxApp.<>c__DisplayClass17_0.b_0(XafApplication )
at System.Reactive.Linq.ObservableImpl.Do`1.OnNext..OnNext(TSource value) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/Do.cs:line 38