This is a migrated thread and some comments may be shown as answers.

Could not load file or assembly

3 Answers 150 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kaushal
Top achievements
Rank 1
Kaushal asked on 22 Dec 2010, 05:29 AM
Hello ALL,

            I have developed web application using Telerik controls, on my web application i have added reference of Telerik.Web.UI (2010.1.519.35).

Application have been developed on .Net Framework 4.0, now due to some conditions i have to convert my entire application to .Net Framework 3.5, now everything converted well, when i am trying to add new page and will use any Telerik Control its running well, but when  i am trying to browse my existing page, then it gives me following error.

Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.826.20, 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)

Please do needful to me, if i missed out anything.

Thanks
Kaushal.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Dec 2010, 08:50 AM
Hello Kaushal,

Check your project for the corresponding string (2008.2.826.20) - most probably, you have added in web.config or in the page's directives, the full assembly name of Telerik.Web.UI.

Kind regards,
Georgi Tunev
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.
0
Kaushal
Top achievements
Rank 1
answered on 22 Dec 2010, 09:02 AM
Hi Georgi,

           Thanks for your quick reply, i got reason behind this issue with my application, i am defining the thread as i face and still i got an error. kindly review once and do let me know if any solution for same.

I am going to convert my application from framework 4.0 to 3.5
 
    Once entire application converted into 3.5 Framework, application got error for ribbon controls which referes RussellMason.Web.Application.dll (73kb).
 
    To resolve those error i have find out latest dll which is used with 3.5 framework RussellMason.Web.Application.dll (92kb), and error got resolved.
 
    Now when we try to run application login page get running well, but for main page at which we have used RussellMason.Web.Application.dll, we got an error for "Telerik.Web.UI, Version=2008.2.826.20"
 
    Error : Could not load file or assembly 'Telerik.Web.UI, Version=2008.2.826.20, 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)
    This error comes cause of latest dll RussellMason.Web.Application.dll (92kb) have been build with "Telerik.Web.UI, Version=2008.2.826.20"
 
    If i am trying to add "Telerik.Web.UI, Version=2008.2.826.20" withing our application then other conflict error comes regardin telerik controls.

   Is it possible to add same name dll with different version to application?

Thanks
Kaushal
 
0
Princy
Top achievements
Rank 2
answered on 22 Dec 2010, 01:25 PM
Hello Kaushal,

The .NET framework does not allow you to use two different versions for the same assembly in a single web-application. Since the assembly names are the same, there is no way to keep them both in the same folder; the namespaces are the same, which in turn does not allow you to use different assemblies on the same page or project.

The error occurs if there is older version present either in GAC/application.
Check following links to know more:
Error: Could not load file or assembly
General Troubleshooting


Thanks,
Princy.
Tags
General Discussions
Asked by
Kaushal
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Kaushal
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or