Rad Control error with Modal Popup extender in VS 2008.

6 posts, 0 answers
  1. Sanjay Sangal
    Sanjay Sangal avatar
    4 posts
    Member since:
    Jun 2010

    Posted 05 Jul 2010 Link to this post

    Hi,
    Iam using rad control inside modal popup in asp.net 3.5, and getting following Error. So please tell me why iam getting this error.
    Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_RadCalendar1' can't be added to the application.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Jul 2010 Link to this post

    Hi,

    I'm not able to replicate the described issue locally. Please find attached a sample application which works correctly on my side. Test it locally and let me know what the difference in your case is.


    Greetings,
    Maria Ilieva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sanjay Sangal
    Sanjay Sangal avatar
    4 posts
    Member since:
    Jun 2010

    Posted 08 Jul 2010 Link to this post

    Hi,
     Thanks for your response,
    As you send me this demo project, like this my project is also working fine.
    I getting problem when doing following.
    1- i have one radGrid with Button Column(for edit record).
    2- when i click in this button where i have written server side code modalpopup.show(), that time iam getting this error.  
    "Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder1_RadTextBox1' can't be added to the application."
    Somewhere i have read to set ScriptManager proparty script mode to release then it is solving this issue, but creating another following error.
    Iam also sending some screen shot to you, please see it.

    Invalid JSON primitive: .

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: Invalid JSON primitive: .

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: Invalid JSON primitive: .]
       System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() +538898
       System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) +242
       System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) +51
       System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +37
       System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(String input) +13
       Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +137
       Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +50
       Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +42
       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +346
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
    
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 09 Jul 2010 Link to this post

    Hi,

    Could you please open a regular support ticket and send us small runnable application which replicates the described error. We will test it locally and provide more to-the-point solution.

    Sincerely yours,
    Maria Ilieva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. naimish
    naimish avatar
    31 posts
    Member since:
    Jul 2010

    Posted 01 Mar 2011 Link to this post

    Hi Sanjay,

    Did u able to resolve this issue, as i am getting same exception.

    I am using RadGrid with RadTabStrip inside nested Detail.

    Message: Invalid JSON primitive: .

    Stack Trace:    at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()

       at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)

       at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)

       at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)

       at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)

       at Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection)

       at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  7. Antonio
    Antonio avatar
    3 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2012 Link to this post

    i have the same problem, how i can resolve it??
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017