[CLOSED] Unsupported type: System.Guid (Migration from 0.8.3 to 1.0)

  1. #1

    [CLOSED] Unsupported type: System.Guid (Migration from 0.8.3 to 1.0)

    Hi Team,

    We have done a Migration from Coolite 0.8.3 to Ext.Net 1.0 yesterday.

    As a first issue we come across with this problem.

    Error Message is : "Error during ClientConfig initialization. ValueProxy - Unsupported type: System.Guid. Use the JsonSerializer class to get the object's JSON representation."
    in
    ClientConfig.cs file at line no. 637. in some of the screens.

    If you already aware of this issue please give an immediate reply.

    Regards,
    Last edited by Daniil; Feb 07, 2011 at 11:37 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Which code throws that exception? Can you provide test sample?
  3. #3
    Dear Team,

    We found where the problem is.

    We used hidden Controls to store, Guid Properties in our User Controls (Web User Controls) at many places as under, produced the error. (as it was working fine with 0.8.3).

    public Guid LeaveTypeId
            {
                get { return hdnLvTypeId.Value != null ? (new Guid(hdnLvTypeId.Value.ToString())) : Guid.Empty; }
                set { hdnLvTypeId.Value = value; }
            }
    But after changing the properties to

    public Guid LeaveTypeId
            {
                get { return hdnLvTypeId.Value != null ? (new Guid(Ext.Net.JSON.Deserialize(hdnLvTypeId.Value.ToString()).ToString())) : Guid.Empty; }
                set { hdnLvTypeId.Value = Ext.Net.JSON.Serialize(value); }
            }
    or (Using Text Property)
             public Guid LeaveTypeId
            {
                get { return !string.IsNullOrEmpty(hdnLvTypeId.Text) ? new Guid(hdnLvTypeId.Text) : Guid.Empty; }
                set { hdnLvTypeId.Text = value.ToString(); }
            }
    We come across with other problems as well. I post them in separate thread. Please mark this as solved.

    Thank you for your time.
    Last edited by vedagopal2004; Feb 07, 2011 at 8:17 AM. Reason: a small type correction

Similar Threads

  1. Replies: 8
    Last Post: Jul 20, 2012, 1:33 PM
  2. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  3. Replies: 0
    Last Post: Dec 27, 2009, 1:47 PM
  4. Replies: 2
    Last Post: Aug 31, 2009, 6:03 PM
  5. [CLOSED] AjaxMethods: System.Guid as parameter not working
    By pschojer in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 23, 2009, 5:46 AM

Tags for this Thread

Posting Permissions