New error when calling LoadLayout in v2015.2.623.40

4 posts, 1 answers
  1. John
    John avatar
    2 posts
    Member since:
    May 2014

    Posted 26 Jun 2015 Link to this post

    I've been Saving and Loading the GridView layout for quite some time now.  This week I updated the UI controls to version 2015.2.623.40.  Since then, when I call LoadLayout(<MemoryStream>) I get the following message box message:

    "The string you have entered cannot be converted to a valid Type object.  Please, verify the spelling and include any namespaces that migh be needed."

     Yes, "might" was misspelled as "migh" in the message box.

     Did something change with the Save/Load layout methods?

  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 29 Jun 2015 Link to this post

    Hello John,

    Thank you for writing.

    In our last release we added the column's data type to the information that is deserialized when saving the grid's layout. When loading this layout if the assembly of this data type is not loaded the exception occurs. .NET loads assemblies at the latest possible moment which is when a type of this assembly is instantiated and having a reference to the assembly does not load this assembly nor does working with its metadata.

    We have this issue in our Feedback portal. You track the progress of this item, subscribe for status change alerts and add your vote/comment to it on the following link - Feedback item. For now you can use the workaround suggested in the item.

    I hope this will be useful. Should you have further questions, I would be glad to help.

    Regards,
    Ivan Petrov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 10 Jul 2015 in reply to Ivan Petrov Link to this post

    Would be quite helpful if the error message would indicate which string could not be converted....

    Regards

    erwin

  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 14 Jul 2015 Link to this post

    Hi Erwin,

    Thank you for writing.

    We will consider to include a proper message when we are working on the issue. Generally the string represents the type name (for example System.Int32).

    Do not hesitate to contact us if you have other questions.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top