Urgency: VS2010 Designer Problem

Thread is closed for posting
3 posts, 0 answers
  1. SCT
    SCT avatar
    32 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2011 Link to this post

    Dear Telerik Team,

    In my VS2010 solution, I refer to the newest telerik .dll libraries:
    - Telerik.Web.UI.dll (version 2011,1,519,40)
    - Telerik.Web.Design.dll (version 2011,1,519,40)

    My VS2010 designer have nearly permanently problem to show the RadChart (and not only the RadChart) in the design of my aspx page. Refresh helps, however sometimes... :(

    After drag-and-drop from Toolbox, the designer produces this error message:
    "Error Creating Control - RadChart1[A]Telerik.Web.UI.RadChart cannot be cast to [B]Telerik.Web.UI.RadChart. Type A originates from 'Telerik.Web.UI, Version=2011.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\koterec\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\vcxqtkpk01\Telerik.Web.UI.dll'. Type B originates from 'Telerik.Web.UI, Version=2011.1.519.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\koterec\AppData\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\pccl1usa01\telerik.web.ui.dll'."

    Provide me the solution, please.
    Thanks in advance.
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 04 Jul 2011 Link to this post

    Hello,

    This design time error is caused by having two instances of the Telerik.Web.UI assembly with different versions (might be Trial - Dev as well), loaded in the same Visual Studio AppDomain.

    This could happen as a result of a reference update, e.g: a page with RadControls was loaded in design mode, the reference was updated and the page got reloaded again. This is a one-time only problem and its fix involves a Visual Studio restart.

    Another possible reason for that is that the solution contains multiple projects, each referencing a different RadControls for ASP.NET AJAX assembly. Thus, loading a page with a RadControl from ProjectA in design mode and loading a page with a RadControl from ProjectB could result in the TypeCastException.

    In that case please, update both the projects to use the same RadControls assembly, or split the projects to different solutions. Please, restart Visual Studio after any of the approaches.


    Regards,
    Ves
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. SCT
    SCT avatar
    32 posts
    Member since:
    Jun 2012

    Posted 07 Jul 2011 Link to this post

    Hi,

    thank you very much for the reply.

    Kind regards,
    SCT
Back to Top