模型差异中间层xpand

时间:2017-10-09 09:18:20

标签: c# devexpress xaf

我正在努力让扩展框架源中提供的演示工作位于 " Xpand-Source-17.1.3.6 \ Demos \ Middle Tier \ E4035-Remoting"开箱即用,但我得到下面的例外。具体来说,我想在远程方案中使用模型差异。

对象引用未设置为对象的实例。

服务器堆栈跟踪:    在DevExpress.ExpressApp.Security.SecurityStrategy.GetObjectSpaces()    在DevExpress.ExpressApp.Security.SecurityStrategy.RegisterProcessors(Dictionary`2处理器,Object permissionsProvider,IObjectSpace objectSpace)    在DevExpress.ExpressApp.Security.SecurityStrategy.CreateSelectDataSecurityCore(IObjectSpace objectSpace)    在DevExpress.ExpressApp.Security.SecurityStrategy.CreateSelectDataSecurity(IObjectSpace objectSpace)    在DevExpress.ExpressApp.Security.ClientServer.SecuredSerializableObjectLayer.CreateSerializableObjectLayerCore(IClientInfo clientInfo,IDataLayer dataLayer,IRequestSecurityStrategyProvider securityStrategyProvider,UnitOfWork& result_parentSession,ISecurityRule& securityRule,Boolean allowICommandChannelDoWithSecurityContext)    在DevExpress.ExpressApp.Security.ClientServer.SecuredSerializableObjectLayer.GetSerializableObjectLayer(IClientInfo clientInfo,UnitOfWork& result_parentSession)    在DevExpress.ExpressApp.Security.ClientServer.SecuredSerializableObjectLayerBase.DevExpress.ExpressApp.Security.ClientServer.ISecuredSerializableObjectLayer.LoadObjects(IClientInfo clientInfo,XPDictionaryStub dictionary,ObjectStubsQuery []查询)    在System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object [] args,Object server,Object []& outArgs)    在System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

在[0]处重新抛出异常:    在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)    在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)    在DevExpress.ExpressApp.Security.ClientServer.ISecuredSerializableObjectLayer.LoadObjects(IClientInfo clientInfo,XPDictionaryStub dictionary,ObjectStubsQuery []查询)    在DevExpress.Xpo.SerializableObjectLayerClient.LoadObjects(会话会话,ObjectsQuery []查询)    在DevExpress.Xpo.Logger.LogManager.Log [T](字符串类别,LogHandler 1 handler, MessageHandler 1 createMessageHandler)    在DevExpress.Xpo.Session.GetObjects(ObjectsQuery查询)    在DevExpress.Xpo.Session.GetObjects(XPClassInfo classInfo,CriteriaOperator条件,SortingCollection排序,Int32 topSelectedRecords,布尔selectDeleted,布尔力)    在DevExpress.Xpo.Helpers.XPObjectTypesManager.GetAllTypes()    在DevExpress.Xpo.Session。<> c__DisplayClass3a.b__38()    在DevExpress.Xpo.Logger.LogManager.Log [T](字符串类别,LogHandler 1 handler, MessageHandler 1 createMessageHandler)    在DevExpress.Xpo.Session.GetObjectByKey(Type classType,Object id)    在DevExpress.ExpressApp.Xpo.XPObjectSpace.GetObjectByKey(类型objectType,Object key)    在DevExpress.ExpressApp.Security.ClientServer.ServerSecurityClient.get_User()    在Xpand.ExpressApp.ModelDifference.DataStore.Queries.QueryUserModelDifferenceObject.get_UsersContainsOperator()    at Xpand.ExpressApp.ModelDifference.DataStore.Queries.QueryUserModelDifferenceObject.GetActiveModelDifferences(String applicationName,String name,DeviceCategory deviceCategory)    在Xpand.ExpressApp.ModelDifference.DictionaryStores.XpoUserModelDictionaryDifferenceStore.GetActiveDifferenceObjects(DeviceCategory deviceCategory)    at Xpand.ExpressApp.ModelDifference.DictionaryStores.XpoUserModelDictionaryDifferenceStore.LoadCore(ModelApplicationBase userDiff)    在DevExpress.ExpressApp.ApplicationModelManager.CreateLayerByStore(String id,ModelStoreBase store)    在DevExpress.ExpressApp.XafApplication.LoadUserDifferences()    在DevExpress.ExpressApp.XafApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)    在DevExpress.ExpressApp.Win.WinApplication.Logon(PopupWindowShowActionExecuteEventArgs logonWindowArgs)

1 个答案:

答案 0 :(得分:0)

Remoting是相当古老的技术,因此E4035演示不经常更新或测试。相反,您可以在每个版本中使用EasyTested的E4036-WCF演示。