Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35

15 posts, 0 answers
  1. Gert Petersen
    Gert Petersen avatar
    19 posts
    Member since:
    May 2009

    Posted 09 Sep 2009 Link to this post

    Getting this error after upgrading:

    RadGrid - RadGrid1System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified. File name: 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)

    What to do ?

    Br
    Pettsen
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 09 Sep 2009 Link to this post

    Hi Pettsen,

    This problem usually happens as a result of the shadow assembly mechanism of the Visual Studio IDE. Fixing it involves closing all of the Visual Studio IDE instances and loading your project again.

    Let me share some more information:
    To avoid locks, the Visual Studio IDE makes "shadow" copies of the assemblies which are actually used by the application and loads the assembly from the shadow copy location instead. This way it is possible for a developer to delete an assembly or replace it safely. Unfortunately, when replacing an assembly, the IDE makes a second shadow copy, which it loads again. Thus, there are two assemblies having the same namespaces, classes, etc. loaded in the current Application Domain and an ambiguity occurs. When viewing a page in design mode, the definitions of the classes in these two loaded assemblies are in conflict, hence the error.

    Can you try restarting the solution?

    Best regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Gert Petersen
    Gert Petersen avatar
    19 posts
    Member since:
    May 2009

    Posted 26 Sep 2009 Link to this post

    HI,
    Thanks for the reply, just got back from vacations :-)

    It does NOT help to restart solution. Same problem.

    Br
    Pettsen
  5. rajinder singh
    rajinder singh avatar
    8 posts
    Member since:
    Oct 2009

    Posted 08 Oct 2009 Link to this post

    hi i have the same problem..but i cant understand the solution u have suggested because of little knowledge of using assamblies..could u please explain it in step by step procedure what to do and how???i will be very thankfull to u for this..
  6. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 09 Oct 2009 Link to this post

    Hello Rajinder,

    There are three ways to solve this problem:

    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=xxxx.x.xxx.xx, 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.



    Thanks...
    <John:Peel />
  7. Gert Petersen
    Gert Petersen avatar
    19 posts
    Member since:
    May 2009

    Posted 12 Oct 2009 Link to this post

    Thanks for your effort, but none of theese solutions works :-(

    Br
    Pettsen
  8. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 12 Oct 2009 Link to this post

    Hi Gert,

    Could you please, open a support ticket and send a project along with steps and screenshots how to reproduce the problem on our side? Once we are able to reproduce it we will do our best to help.


    Regards,
    Plamen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Gert Petersen
    Gert Petersen avatar
    19 posts
    Member since:
    May 2009

    Posted 12 Oct 2009 Link to this post

    *** Problem solved ***

    Hurraa !!!

    I can't believe my own stupidity !
    What was the problem ????
     
    Well, all the time i forgot to update Visual Studio 2008 with Servicepack 1.
    Thats all folks.
    Thanks to Telerik for the support.

    Br
    Pettsen
  10. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 12 Oct 2009 Link to this post

    Hello Gert,

    I am glad that you found a solution. If you have any further questions or problems regarding our products, please do not hesitate to contact us. 

    Best wishes,
    Plamen
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Rich
    Rich avatar
    6 posts
    Member since:
    Apr 2007

    Posted 19 Oct 2009 Link to this post

    doing #3

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


    made it work for me.

    thanks
  12. Antti Kokko
    Antti Kokko avatar
    1 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2009 Link to this post

    Hello, I`m new but I ran into same kind of situation. I have the latest sitefinity 3.7. I`m trying to get the intra module example Contacts to work. I have tried almost everything but now it seems everything is pretty messy..:) But anyways first I ran into issues with registering assemblies RadMenu.Net2 etc. I removed those and started using directly telerik.RadMenu and it worked. I had to do refactoring here and there to get this compile to the point I`m currently. Now I`m getting following exceptions and just don`t know how to fix those anymore. Maybe at some point all went terribly wrong:

    Error    5    Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    C:\Projects\telerik\Sitefinity3.7\WebSites\SalesPresentation\Sitefinity\cmsentrypoint.aspx    1    
    Error    6    Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    C:\Projects\telerik\Sitefinity3.7\WebSites\SalesPresentation\Sitefinity\Admin\PreviewPage.aspx    1    
    Error    7    Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)    C:\Projects\telerik\Sitefinity3.7\WebSites\SalesPresentation\Sitefinity\Admin\EditPage.aspx    1    


  13. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 18 Nov 2009 Link to this post

    Hi Antti

    I recommend you check whether your web.config file contains references to older version of RadControls . 




    Regards...
    <John:Peel />
  14. Denny Caldwell
    Denny Caldwell avatar
    2 posts
    Member since:
    Nov 2008

    Posted 29 Dec 2009 Link to this post

    #3 worked for me as well. Now I have to remember to update it whenever I update RadControls, but at least it works.
  15. Joel
    Joel avatar
    19 posts
    Member since:
    Oct 2011

    Posted 05 Apr 2015 Link to this post

    Check If you have the file licenses.licx, if so, exclude it from your solution, somehow this lil file always screws telerik dll when updating the the latest version.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017