eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. 𝗹𝗶𝗻𝗸𝗲𝗱𝗶𝗻.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺, 𝘆𝗼𝘂𝘁𝘂𝗯𝗲.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺 and 𝘁𝘄𝗶𝘁𝘁𝗲𝗿 @𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and or simply 𝗦𝘁𝗮𝗿/𝘄𝗮𝘁𝗰𝗵 this repository and get notified from 𝗚𝗶𝘁𝗛𝘂𝗯
http://expand.expandframework.com
Microsoft Public License
221 stars 115 forks source link

Middle tier sample #768

Closed sam105kelly closed 2 years ago

sam105kelly commented 4 years ago

Please provide E4036-WCF sample with the current version of expand framework including workflow server. thanks

apobekiaris commented 4 years ago

even if a sample exists the real issue is the long time support of it. Publishing a sample that works only for now makes no sesnse tests/easytest must be added in the pipe. If u have an issue with a specific module set installation provide a sample and repro details

sam105kelly commented 4 years ago

i din't mean to include in expand. let me try to make it work.will provide a sample

apobekiaris commented 4 years ago

expand has a lot of packages currently:

(Get-XpandPackageNames).count
224

and unfortunately there is no list nor tests which they work in such a scenario

apobekiaris commented 4 years ago

try to be specific to your needs

apobekiaris commented 4 years ago

a label also exist, a lookup to see if u can get help

https://github.com/eXpandFramework/eXpand/issues?q=label%3AMiddleTier+

sam105kelly commented 4 years ago

middletier.zip Problem appears to come from sequence generator. Also I dont know the purpose of IModelDifferenceServerModels

sam105kelly commented 4 years ago

IS there a way to disable the sequence generator. Am asking because am using sqllite which doesnt support it

apobekiaris commented 4 years ago

from the wiki of the sequencegenerator module

The module works only for MSSQL, MySql, and Oracle databases.

https://github.com/eXpandFramework/DevExpress.XAF/tree/master/src/Modules/SequenceGenerator#issues-debugging-troubleshooting

apobekiaris commented 4 years ago

let me know if the unload feature does not work as expected

expand commented 4 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.

sam105kelly commented 4 years ago

Unload feature works but wcf channel is in a faulted state after logon.I am still trying to determine the cause

sam105kelly commented 4 years ago

App server is now working. Just edited the default XAF project template and added this. public class ALevelServerApplication : ServerApplication, IModelDifferenceServerModels { public IQueryable Where(IQueryable modelDifferenceObjects) { return modelDifferenceObjects; } protected override string GetModelAssemblyFilePath() { return this.GetModelFilePath(); } }`

However unload fails on the Workflow Server with null reference exception stacktrace

at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.<>cDisplayClass5_0.b0(ApplicationModulesManager ) at System.Reactive.Linq.ObservableImpl.Do`1.OnNext..OnNext(TSource value) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Reactive.Stubs.<>c.<.cctor>b21(Exception ex) at System.Reactive.AnonymousSafeObserver1.OnError(Exception error) at System.Reactive.Sink1.ForwardOnError(Exception error) at System.Reactive.Sink1.ForwardOnError(Exception error) at System.Reactive.Linq.ObservableImpl.Do1.OnNext..OnNext(TSource value) at System.Reactive.Subjects.Subject1.OnNext(T value) at Xpand.XAF.Modules.Reactive.ReactiveModuleBase.SetupModules(ApplicationModulesManager applicationModulesManager) at DevExpress.ExpressApp.ApplicationModulesManager.SetupModules_Patch1(ApplicationModulesManager this) at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo) at DevExpress.ExpressApp.XafApplication.SetupCore(String applicationName, IList1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) at DevExpress.ExpressApp.XafApplication.Setup() at Solution2.WorkflowServerService.Solution2WorkflowServer.Start() at Solution2.WorkflowServerService.Program.<>c.

b0_3(Solution2WorkflowServer execute) at Topshelf.ServiceConfiguratorExtensions.<>c__DisplayClass2_01.<WhenStarted>b__0(T service, HostControl control) at Topshelf.Builders.DelegateServiceBuilder1.DelegateServiceHandle.Start(HostControl hostControl) at Topshelf.Hosts.ConsoleRunHost.Run()

sam105kelly commented 4 years ago

Also Enlighten me on the proper implementation of IModelDifferenceServerModels

mbogaerts commented 4 years ago

Also Enlighten me on the proper implementation of IModelDifferenceServerModels

+1

sam105kelly commented 4 years ago

faulted state after login occurs when you add xpand workflow module. Otherwise it works fine. Also I have Added Xpand.XAF.Modules.Reactive.ReactiveModuleBase.Unload(typeof(Xpand.XAF.Modules.PositionInListview.PositionInListViewModule));

because throws nullreferenceexception when creating initial database schema in updater

sam105kelly commented 4 years ago

PositionInListview throws nullreferenceexception when i store model differences in database.

apobekiaris commented 4 years ago

Also Enlighten me on the proper implementation of IModelDifferenceServerModels

whats the problem with it? u can llok the git history on the file which point back to #234 u can also search for code dependecies to get a better clue.

PositionInListview throws nullreferenceexception when i store model differences in database.

sample gives a chance to resolve the case at some point.

sam105kelly commented 4 years ago

middletier.zip

Johnkag commented 4 years ago

decided to just reset the client channel at after logon

apobekiaris commented 4 years ago

thanks for commenting but keep in mind that is very hard to understand your last comment at research time. Try a bit more detailed commenting if possible

Johnkag commented 4 years ago

Added this wcfSecuredClient.ClientChannel.Opening += ClientChannel_Opening; and the handler `private static void ClientChannel_Opening(object sender, EventArgs e) { ((IClientChannel)sender).Faulted += (clientChannelSender, clientChannelEventHandler) => { ((IClientChannel)clientChannelSender).Abort(); Thread.Sleep(1000); wcfSecuredClient.ResetChannel(); wcfSecuredClient.ClientChannel.Opening += ClientChannel_Opening; wcfSecuredClient.Logon(); };

    }`

just to deal with the faulted wcf channel at startup

apobekiaris commented 3 years ago

added tests for the following cases

SequenceGenerator: UnSupported_DataStore_registration_should_not_throw SequenceGenerator: Middle_Tier_registration_should_not_throw

expand commented 3 years ago

The pre-release 2.201.21.4 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 (see the Modules installation-registrations youtube video).

Released packages: Xpand.Extensions v.2.202.59.4 Xpand.Extensions.Office.Cloud v.2.202.60.5 Xpand.Extensions.Office.Cloud.Google.Blazor v.2.202.4.5 Xpand.Extensions.Reactive v.2.202.60.7 Xpand.Extensions.XAF v.2.202.60.8 Xpand.XAF.Core.All v.2.202.44.4 Xpand.XAF.Modules.AutoCommit v.2.202.60.5 Xpand.XAF.Modules.CloneMemberValue v.2.202.60.5 Xpand.XAF.Modules.CloneModelView v.2.202.60.5 Xpand.XAF.Modules.GridListEditor v.2.202.60.5 Xpand.XAF.Modules.HideToolBar v.2.202.60.5 Xpand.XAF.Modules.LookupCascade v.2.202.62.5 Xpand.XAF.Modules.MasterDetail v.2.202.60.5 Xpand.XAF.Modules.ModelMapper v.2.202.60.6 Xpand.XAF.Modules.ModelViewInheritance v.2.202.60.5 Xpand.XAF.Modules.Office.Cloud.Google v.2.202.21.5 Xpand.XAF.Modules.Office.Cloud.Google.Calendar v.2.202.11.5 Xpand.XAF.Modules.Office.Cloud.Google.Tasks v.2.202.18.5 Xpand.XAF.Modules.Office.Cloud.Microsoft v.2.202.61.5 Xpand.XAF.Modules.Office.Cloud.Microsoft.Calendar v.2.202.32.5 Xpand.XAF.Modules.Office.Cloud.Microsoft.Todo v.2.202.31.5 Xpand.XAF.Modules.Office.DocumentStyleManager v.2.202.8.5 Xpand.XAF.Modules.OneView v.2.202.60.5 Xpand.XAF.Modules.PositionInListView v.2.202.31.5 Xpand.XAF.Modules.ProgressBarViewItem v.2.202.60.5 Xpand.XAF.Modules.Reactive v.2.202.60.9 Xpand.XAF.Modules.Reactive.Logger v.2.202.60.5 Xpand.XAF.Modules.Reactive.Logger.Client.Win v.2.202.60.5 Xpand.XAF.Modules.Reactive.Logger.Hub v.2.202.60.5 Xpand.XAF.Modules.RefreshView v.2.202.61.5 Xpand.XAF.Modules.SequenceGenerator v.2.202.60.8 Xpand.XAF.Modules.SuppressConfirmation v.2.202.60.5 Xpand.XAF.Modules.ViewEditMode v.2.202.60.5 Xpand.XAF.Modules.ViewItemValue v.2.202.26.5 Xpand.XAF.Modules.ViewWizard v.2.202.22.5 Xpand.XAF.Web.All v.2.202.44.4 Xpand.XAF.Win.All v.2.202.44.4

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.

expand 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.

emeyke commented 3 years ago

Hi @Johnkag Would you be able to post your last working sample from this issue? Last on referenced does not open.

Thanks Evgeniy

Johnkag commented 3 years ago

I don't have the original sample now but I can create for you one of these three samples.

  1. A working sample with a workaround or
  2. A new sample if the current release fixed the issue.
emeyke commented 3 years ago

Thanks. I think I am fine for now!

expand commented 2 years ago

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

.Thank you for your contribution.