Microsoft
Visual Studio
Visual Studio
  • Home
    • Problems
    • Suggestions
  • Downloads
    • Visual Studio IDE
    • Visual Studio Code
    • Azure DevOps
    • Team Foundation Server
    • Accounts and Subscriptions
  • Subscriber Access
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • SQL
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Surface for Business
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Research
      • Docs
      • TechNet
      • Developer Network
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
    • View all
    Sign in

    Developer Community

    Get help from our community supported forum
    • Home /
    • .NET /
    Searched and didn’t find your feedback?
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    or
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    Visual Studio
    Visual Studio for Mac
    .NET
    C++
    Azure DevOps
    TFS
    12

    ArgumentException throws when sort a column with null value in the dynamic collection .

    .net

    avatar image Gowtham Gopalsamy reported Nov 08, 2018 at 11:43 AM

    sshot-1.png (4.2 kB)
    dynamiccollectionsimplesample.zip (68.7 kB)
    thub.nodes.view.add-new-comment
    Add comment Show 3

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Gowtham Gopalsamy · Nov 09, 2018 at 09:28 AM 0
    Share
    avatar image Gowtham Gopalsamy · Nov 10, 2018 at 09:31 AM 0
    Share
    avatar image Gowtham Gopalsamy · Nov 12, 2018 at 08:59 AM 0
    Share

    Solutions

    · Add your solution
    0

    Solution by avatar image Jared Parsons [MSFT] · Nov 12, 2018 at 06:05 PM

    Took a look and the bug appears to be inside the DynamicHelper type. If you debug this application with Just My Code disabled you'll see this block throws everytime a request for OrderID or ObjectID is made

                var dynamicHelper = new DynamicHelper();
                var getterSite = dynamicHelper.GetGetterSite(dynamicMetaObject.GetType(), propName);
                object result = getterSite.Target.Invoke(getterSite, dynamicMetaObject);
                return result;
    

    When this code is fixed up to not throw (just using slow reflection to grab the members) then everything works just fine. The bug appears to be in how DynamicHelper generates theses getters.

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded

    Add a Solution

    Up to 5 attachments (including images) can be used with a maximum of 2.1 GB each and 2.1 GB total.

    Follow

    35 People are following this

    Related Problems

    Have to click button on web form twice to fire event after Server(Transfer) but not if page called directly
    0 Solution

    Désabonnement-Unsubscribe
    0 Solution

    .net framework 4.5 -4.7.1 send http request bug
    1 Solution

    project creation failed
    0 Solution

    TechnologyNotSupportedException: To test Windows Store apps, use the Coded UI Test project template for Windows Store apps under the Windows Store node.
    0 Solution

    asynchronous socket client return empty response
    0 Solution

    .NET Framework 4.7.2 bug?
    2 Solution

    .net Framework 3.5 not installing on Windows 10
    0 Solution

    dotnet run looks in the wrong location for project output .dll
    0 Solution

    SslStream.AuthenticateAsClient ignores checkCertificateRevocation
    1 Solution

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Enterprise
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Manufacturing & resources
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact us
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2018
    • Anonymous
    • Sign in
    • Spaces
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    • Explore
    • Topics
    • Problems
    • Features
    • Users
    • Badges