Telerik Telerik
The Telerik Blogs

Meet Telerik.Web.Design.dll

Friday, March 06, 2009 by ASP.NET AJAX Team | Comments 39

This blog post has been updated !!!

If you tried our Q1 2009 Beta you have probably noticed that there is a brand new assembly installed in your GAC - Telerik.Web.Design.dll. We decided to separate the design-time code from the web control implementation code. The reasons are many - better separation of concerns, less assembly references for the main assembly (Telerik.Web.UI.dll). We now have the freedom to extend the design time capabilities of RadControls for ASP.NET Ajax without bloating the main control assembly.

Why didn't we make it that way from the beginning? The only reason is that Visual Studio 2008 had a problem with loading GAC-ed design-time assemblies of control libraries deployed in the BIN folder of a web site. Strangely enough the problem didn't appear in Visual Studio 2005. The good news is that this bug has been fixed in Visual Studio 2008 SP1!

However if you for some reason cannot upgrade to Visual Studio 2008 SP1 you will face the following exception after upgrading to RadControls for ASP.NET Ajax Q1 2009:

Failed to create designer Telerik.Web.UI

Fortunately there are three ways to solve this problem (apart from the obvious upgrade to Visual Studio 2008 SP1):

  1. Bin-deploy the design-time assembly
    This solution would work only in case you have not installed RadControls for ASP.NET Ajax using the provided setup program. Assemblies installed by a setup program cannot be removed from GAC until the program is uninstalled. This approach is suitable when using only the dll-s from a zip (be that a hotfix or latest internal build).
    • Remove Telerik.Web.Design.dll from the GAC (this would fail if you have installed RadCotnrols for ASP.NET Ajax via the installer)
    • Copy Telerik.Web.Design.dll to your web site or application and make sure the dll is copied to the bin folder
    • Restart Visual Studio
  2. GAC-deploy the control library assembly
    • Add Telerik.Web.UI.dll in the GAC
    • Remove Telerik.Web.UI.dll from your bin folder
    • Make sure you have the following line in your web.config:
      <add assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
    • Restart Visual Studio
  3. Copy Telerik.Web.UI.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.

I hope this helps,

Atanas

39 Comments

  • Pelle 22 Mar
    Just so U know, i do have VS08SP1 and still get the designtime error....
  • Bruce 25 Mar
    Same here, I have SP1 installed and now I'm getting the error.
  • Atanas Korchev 26 Mar
    Hi guys,

    I am sorry to hear that you are having issues with SP1. I suggest you open a support ticket answering the following questions:

    Is Telerik.Web.Design.dll deployed in GAC?
    Are you using some internal build or the official one?
    Have you tried the workarounds mentioned in the blog post?

    Thanks,
    -Atanas
  • hacker 27 Mar
    I too have SP1 and was getting that error.  When I checked the GAC, the Telerik.Web.Design DLL wasn't there for my version.  Adding it and restarting VS make everything work nice!


  • Joe Banko 29 Mar
    Not to be DUHHHH, but what the heck is GAC? And I also am having the same issue as above. Before we bought the Telerik controls we had this issue and I did a SP1 update and that seemed to fix everything and I did a lot of development. After our purchase I decided to start with a fresh copy of the controls and now I'm down again! Is there a DEFINITIVE reason why this happens? If there is can't it be fixed and if not at least some sort of procedure for installing that doesn't require hours wasted on installing and re-installing.

    Joe B
  • Saberint 29 Mar
    Joe,

    the GAC is the Global Assembley Cache (I think thats what it stands for...anyway...) it can be found if you browse to either:
    C:\WINDOWS\assembly or 
    C:\WINNT\assembly

    depending on your windows version.

    I also have the same problem by the way.

    And as for the fixes, well how do you remove the Telerik.Web.Design.dll from the GAC when it it used with the Telerik control install? Everytime you try to remove it, you get an error because it is being used by another process. The only way I have found so far to be able to uninstall the Telerik.Web.Design.dll is by uninstalling the controls... which kind of defeats the purpose!

    Telerik,

    Please Telerik, can we have some bug testing before a product is released? It really is insulting for you to get your customers to do the bug testing for you. It shows just how much you care about your customers. Every new release of the Telerik controls is followed by days of work working out what is broken this time and working out some dodgy code to get around it :( Then of course you may spend weeks rolling out these fixes...

    Oh and having a line through the zero would really help when using the CAPTCHA system below.


  • Saberint 29 Mar
    Joe,
    this is how I got it to work for me, hopefully the same will work for you.

    1) Uninstall all existing versions of the controls.
    2) Remove the Telerik.Web.UI.dll (and if needed the Telerik.Web.Design.dll) references in your application including in the web.config file.
    3) Delete you .net cache files (delete all sub folders):
            C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files or 
            C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
    4) Reboot your computer.
    5) Install the Telerik Controls.
    6) Copy the Telerik.Web.UI.dll to the GAC (C:\WINDOWS\assembly or C:\WINNT\assembly)
    7) Restart Visual Studio and it *should* all be good

    Good Luck,
    Matt
  • Ravish 05 Apr
    Telerik,

    I am getting the same problem i.e could not load file or assembly 'telerik.web.ui, version=1009.1.402.35 . I tried second and thrid method but not able to resolve the problem.

    Can you please help me out.

    Thanks & Regards,
    Ravish
  • Oscar 16 Apr
    Copy Telerik.Web.UI.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.


    Works for me, Windows XP, VS 2008 SP1, .NET 3.5 SP1.


    Salu2

  • Soumya 25 Apr
    HIi can anybody tell from where i can find the dev version of  " telerik-web-ui-2009-1-316" ??? tthis stuff solves the probelm
  • Dave McDonald 29 Apr
    Awesome, thank you so much!  I was looking all over the net for this answer, glad I found it.  Much appreciated.
  • Adam P 14 May
    This fixed it for me with VS 2008 on Windows 7, thanks!!!
  • James 26 Jun

    What fixed it for me;

    Added Telerik.Web.Design.dll 2009.1.527.35 to GAC (209.1.527.20 Already Present)

    Copied Telerik.Web.UI.dll 2009.1.527.35 to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.

    Platform;
    MacBookl Pro
    OSX 10.5.7
    VS2008 SP1
    Windows XP SP1 Served up via Parallels Desktop 4.0.3844

    ..... now where's my Cocoa!





  •  Nice work. Thanks for sharing this info post.
  • Bill Noble 22 Jul

    This fixed it for me.

    Checked GAC :  Telerik.Web.Design.dll 2009.1.527.35 and 209.1.527.20 (Already Present)

    Re-installed VS2008 SP1 (just in case)

    Copied Telerik.Web.UI.dll 2009.1.527.35 to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio.

    VS2008 SP1
    Windows 7


    Lost a lot of time and money over this.

    Fixed now.
    Thanks for the posts.

    Bill
  • Antonio 28 Jul
    For nutcases still using Delphi 2007 .NET like me ;) just informatio that Option 2 works like charm.

    And Telerik controls again works wonderfull in Delphi, respect !
  • PHenry 03 Sep
    Unfortunately I'm getting this error again with the 2009.1.402.35 version.  I've done ALL the above things and still getting nothing in the designer in VS 2008 SP1.  PUUUUHHHHHLEASE help me out, this is causing too much loss of productivity!  Very unfortunate.
  • Chethan 10 Sep
    HI
    After wasting my two days of productivity i got the solution for this.Why cant u give guide document along with package so that developer wont was his time for just copying a single dll to specific folder .............Haaa Productivity of two days it cost more ...........................Please make sure give the correct guide manual
  • AHashemi 11 Sep
    Thanks a bunch!!!
  • Suresh 22 Sep
    Hello,
               I added Telerik.Web.UI.dll to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies and restarted Visual Studio 2008.But still getting a new error:

    "The control with ID 'RadMenu3' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. "

    When I added

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    ------------------ my code -------------------------
    </asp:ScriptManager>

     

    got a net error:
    Type 'System.Web.UI.ScriptManager' does not have a public property named 'RadMenu'

    <div>
    Line 14:     <asp:ScriptManager ID="ScriptManager1" runat="server">
    Line 15:         <telerik:RadMenu ID="RadMenu3" Runat="server" Width="335px">
    Line 16:             <Items>
    Line 17:                 <telerik:RadMenuItem runat="server" Text="College">
  • Pelle 29 Sep
    Suresh, just change to
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    ------------- your code --------------------

    Then it will work for you.

  • Copied Telerik.Web.UI.dll 2009.1.527.35 to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies

    and it worked!

    Now I demand an explenation from Telerik as to why this was not taken care of by the installer. I never got an error message during install or any thing. Just like all the others here I am very frustrated over the loss of time and unnecessary stress expecially when under a timeline crunch. It seems as if we paid for stress when we bought this product. Yes it works good for the most part but alot of undocumented solutions apear as one offs to people through the forum rather than a service pack patch or something. SO you have to do a prayer that when going on the forums that you're lucky enough to find one of those. Totally not acceptable.
  • Julio Cesar 06 Jan
    It woks, I was copy the dll file to the folder c:\program files..

    I am very thankful with this post, after 3 days i don't know what appened.

    Julio César
    Mexico.
  • Carl Taylor 05 Mar
    I have had this problem off and on for quite some time.  It doesn't happen with the MS controls and appears to only be a problem in the design environment with the run time working as expected. but this is really not a a good way to work since this eliminates useful things like smart tags.

    I have tried the SP1 fix and that didn't work.

    What did appear to work is deleting the Temporary ASP.NET files, which for Windows 7 can be found under C:\Windows\Microsoft.NET\Framework\v2.0.50727

    Since things have been working for quite a while, I had forgotten about this until reading some of the posts tonight.

  • Francis Onodueze 20 Mar
    I don't have the RAD software but i got the sample software to execute - It executed without errors but it could not shoe the controls at design time.
    It gives error messages - Error creating control .....
    I will try out the solutions above. Hope it works!
  • Shriparna 26 Apr
    Hi,

    I got a severe headache with this issue and lastly found the tablet here.
    Thanx a lot to Atanas for the solution u provide.

  • hesham 19 May
    this fixed my issue thanks alot
  • Blopa 01 Jun

    I spent 2 hours struggling with this and what fixed the problem was copying the web.design.dll file to the bin folder.

    I didn't even had to restart visual web developer.

    8-)

    THANKS

  • Indu 03 Jun
    Thank you it works......
  • manish 23 Jun
    Thanks a lot...It's  fix my problem
  • manish 23 Jun
    <EM>Copied Telerik.Web.UI.dll 2009.1.527.35 to c:\Program Files\Microsoft Visual   
    Studio 9.0\Common7\IDE\PublicAssemblies and restart Visual Studio</EM> 
    .
    This Fix my problem!!!!!!!!11
  • Hi, I am running into issues on my Test server.  I noticed in my GAC there are 2 different versions of Telerik.Web.Design 2009.3.1208.35 and 2009.3.1208.20.

    Why would both versions be here?  I can't remove the .20.  It says it's needed by another application.
  • Shivan CV 20 Aug
    Copying Telerik.Web.UI.dll 2009.1.527.35 to c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies worked for me too.

    Thanks

  • waki 02 Oct
    i dont have this folder "PublicAssemblies"..plz help
  • waki 02 Oct
    i dont have this folder "PublicAssemblies"..plz help
  • fellow_dev 08 Nov
    why don't you create one? :)
    I had the same problem and the third workaround fixed the issue. Thanks a lot.
  • Felix 24 Jan
    anybody with the Telerik.Web.Design.dll?
  • prem 28 Feb
    Telerik.Web.Examples was not in vb.net 2005...........wat i do?
  • Henry 13 Jul
    some say it can be sovled by Telerik.Web.Design.dll
    maybe

Add comment

  1. Formatting options
       
     
     
     
     
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)