Ticket Q502593
Visible to All Users

Value cannot be null. Parameter name: member.MemberInfo

created 12 years ago

Hi,
after i upgrade my project from 12.8 to 13.1 i have this message error when Login:

Value cannot be null.Parameter name: member.MemberInfo

it stopped in the following subroutine :

Public Overrides Function Authenticate(ByVal objectSpace As DevExpress.ExpressApp.IObjectSpace) As Object WinChangeDatabaseHelper.AuthenticatedUserLogonFailed = False If String.IsNullOrEmpty(AuthenticatedUserName) Then Return MyBase.Authenticate(objectSpace) Else Dim logonParameters As ChangeDatabaseStandardAuthenticationLogonParameters = CType(Me.LogonParameters, ChangeDatabaseStandardAuthenticationLogonParameters) Dim result As Object = objectSpace.FindObject(UserType, New BinaryOperator("UserName", logonParameters.UserName)) If result Is Nothing Then WinChangeDatabaseHelper.AuthenticatedUserLogonFailed = True WinChangeDatabaseHelper.SkipLogonDialog = False Throw New AuthenticationException(logonParameters.UserName, SecurityExceptionLocalizer.GetExceptionMessage(SecurityExceptionId.RetypeTheInformation)) End If AuthenticatedUserName = "" Return result End If End FunctionEnd Class

with exception :
(The user name must not be empty.)

Note : i have customized the Login window as in the folloing example:
http://www.devexpress.com/Support/Center/Example/Details/E1344?currentProgrammingLanguage=VB.NET&version=v2012%20vol%202.4%20-%20v2013%20vol%201.4 Thanks, Please Help!!

Comments (3)
DevExpress Support Team 12 years ago

    Please accept our apologies for the delay in responding. We couldn't find an immediate answer or resolution. Please bear with us. We will inform you as soon as an answer is found.

    DevExpress Support Team 12 years ago

      Please pardon our delayed response. Unfortunately I cannot reproduce the described behavior with the solution from the How to change connection to the database at runtime example. I have attached a test sample and a video with a successful login process. Please change the attached sample or provide your own sample and describe steps to reproduce the issue.

        You can find the error in the attached Sample!!

        Answers approved by DevExpress Support

        created 12 years ago (modified 12 years ago)

        Hello,
        Thank you for the sample. I have researched your solution and found that the Model.DesignedDiffs.xafml file in the FundAccountingSys.Module contains the following invalid data:

        XML
        ... <Member Name="FullName" Caption="Full Name" IsCustom="False" Type="System.String" PredefinedValues="" IsNewNode="True" /> ... <RuleRequiredField Id="BankBranchRefRequiredInPaimentD" TargetPropertyName="tblBankBranch" CustomMessageTemplate="Bank Branch is Required" TargetType="FundAccountingSys.Module.tblPaymentD" TargetContextIDs="Save" TargetCriteria="[tblPaymentMethod.SerialNo] = 1L Or [tblPaymentMethod.SerialNo] = 2L" Index="49" IsNewNode="True" /> ... <RuleRequiredField Id="ChequeTransferDateRequiredInPaymentD" TargetPropertyName="ChequeTransferDate" CustomMessageTemplate="Cheque / Transfer Date is Required" TargetType="FundAccountingSys.Module.tblPaymentD" TargetContextIDs="Save" TargetCriteria="[tblPaymentMethod.SerialNo] = 1L Or [tblPaymentMethod.SerialNo] = 2L" Index="53" IsNewNode="True" /> ...

        Without this data the application starts correctly.
        Thanks,
        Ilya P

          Show previous comments (1)
          DevExpress Support Team 12 years ago

            Hello,
            Generally the 'Update Model' command of the XAF's project context menu finds unusable data from the Model.DesignedDiffs.xafml file and saves it to the UnusableNodes.xml file (refer to the 'What does 'Update Model' in the context menu invoked for a XAF project is intended for?' article for details). If Model.DesignedDiffs.xafml contains invalid data after updating, it is impossible to determine this data without a sample project that reproduces the problem. If you can provide such a sample, please create a separate ticket and describe the problem. We will investigate it and research how to improve the way of detecting such situations. I hope you find this information helpful.
            Thanks,
            Ilya P

              ran update model on each of my projects - but could not solve the problem till I inspected the XML itself.

              Dennis Garavsky (DevExpress) 9 years ago

                @Kirsten: Would you please submit a separate ticket and attach your problematic sample and screenshots illustrating the issue you experienced so we can research it and assist you further?

                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.