Bug Report B96961
Visible to All Users

InvalidOperationException is raised when the ApplicationModulesManager.UpdateModel method is called

created 17 years ago

InvalidOperationException on ApplicationModulesManager.UpdateModel
Steps to Reproduce:
Compile and run attachment project
Actual Results:
The error occured
     Type: InvalidOperationException
     Message: Exception occurs while the 'DevExpress.ExpressApp.Win.Editors.LookupPropertyEditorDropDownWindowSizeController' update model: Value cannot be null.
Parameter name: memberName
     Data: 0 entries
     Stack trace:
   at DevExpress.ExpressApp.ApplicationModulesManager.UpdateModel(List`1 modelUpdaters)
   at DevExpress.ExpressApp.ApplicationModulesManager.LoadModel(ITypesInfo typesInfo)
   at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo)
   at DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IObjectSpaceProvider objectSpaceProvider, ApplicationModulesManager modulesManager, ISecurity security)
   at DevExpress.ExpressApp.XafApplication.Setup()
   at Bug1.Win.Program.Main() in D:\VSS\Repository\Tests\Bug1\Bug1.Win\Program.cs:line 31
InnerException:
     Type: ArgumentNullException
     Message: Value cannot be null.
Parameter name: memberName
     Data: 0 entries
     Stack trace:
   at DevExpress.Persistent.Base.ReflectionHelper.FindMemberDescriptor(Type type, String memberName)
   at DevExpress.Persistent.Base.ReflectionHelper.FindMemberDescriptor(String typeName, String memberName)
   at DevExpress.ExpressApp.Win.Editors.LookupPropertyEditorDropDownWindowSizeManager.UpdateModel(Dictionary dictionary)
   at DevExpress.ExpressApp.Win.Editors.LookupPropertyEditorDropDownWindowSizeController.UpdateModel(Dictionary dictionary)
   at DevExpress.ExpressApp.ApplicationModulesManager.UpdateModel(List`1 modelUpdaters)
     InnerException is null
--------------------------------------------------------------------------------
Loaded assemblies
     Bug1.Module, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, Location=
     Bug1.Module.Win, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, Location=
     Bug1.Win, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, Location=
     DevExpress.BonusSkins.v8.2, Version=8.2.2.0, Culture=neutral, PublicKeyToken=95fc6c5621878f0a, Location=
     DevExpress.Data.v8.2, Version=8.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1, Location=

Expected Results:
Works OK

Comments (1)
DevExpress Support Team 17 years ago

    Hi
    We're fixed this bug in the next 8.2 update. Currently you can use the following workaround. Please add a new controller into the Module.Win:

    C#
    public class MyLookupPropertyEditorDropDownWindowSizeController : LookupPropertyEditorDropDownWindowSizeController { public override void UpdateModel(DevExpress.ExpressApp.Dictionary dictionary) { // base.UpdateModel(dictionary); } }

    Thanks
    Mike V.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.