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

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The module was expected to contain an assembly manifest.

18 Answers 1579 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Damian
Top achievements
Rank 1
Damian asked on 02 Dec 2008, 11:55 PM
I was getting this error with a skeleton .NET 2.0 AJAX web project and one skeleton Telerik Control (Q3 2008). It was driving me nuts since the file was on the server and the right size.

All I did was re-upload the Telerik.Web.UI.dll file to the bin directory on the server.

Hope this saves someone lots of headache in the future.

18 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 03 Dec 2008, 09:43 AM
Hello Damian,

Thank you for sharing your solution in this public forum thread - I updated your Telerik points for the involvement.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
john kerry
Top achievements
Rank 1
answered on 17 May 2009, 12:00 AM
thanks this helped me too.
0
Katte
Top achievements
Rank 1
answered on 27 May 2009, 05:03 AM
In local system itself, I am getting the following error.

"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The module was expected to contain an assembly manifest."

Kindly tell me a solution ASAP.
0
Katte
Top achievements
Rank 1
answered on 27 May 2009, 07:19 AM
But the same project is run on others systems which contains same environment as me.
0
Daniel
Telerik team
answered on 27 May 2009, 07:42 AM
Hello Katte,

Please examine the following forum threads:

Could not load file or assembly ...
* Corrupted files in BIN folder

The module was expected to contain an assembly manifest
* Rename the application / Clean & rebuild the solution

Problem when I attempt to open my web application ...
* Corrupt NET Framework 2.0  / corrupt files remain after VS.NET reinstallation

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Katte
Top achievements
Rank 1
answered on 28 May 2009, 07:03 AM
Hi Daniel,

Thanks for your reply. The first two suggestion doesn't help me to solve the problem. And the third one is not a suitable solution for this problem. So kindly give me some other solution.

Regards,
Katte.
0
Jones
Top achievements
Rank 1
answered on 25 Jul 2009, 04:49 AM
Hi,

Previously I using 2008.3.1314.35 version. Now I have upgrade the dll to 2009.2.701.35 version. I getting  build error as "Could not load assembly....". Now even the solution was not build with 2008 version.  I am keeping the dll directly in bin folder and not in GAC. 
Already saw many post related to this error. But none was helping me to clear this problem. 

The funny thing is its working with trail version. 

Kindly give me a solution.
0
Jaakko Hänninen
Top achievements
Rank 1
answered on 17 Aug 2009, 11:40 AM
I updated also components ASP.NET AJAX components and web applications is not working anymore. There is only one project that contains reference to Telerik.Web.UI and Telerik.Web.Design. I also check that with ILDASM.exe that is references new 2009.2.xxxx version.

When I try to open web app:

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

And if I replace those 2009.2.xxxx files with older ones it wants new dll`s. Visual Studio can`t make up his mind????

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI, Version=2009.2.701.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)

Source Error:


            

0
Daniel
Telerik team
answered on 17 Aug 2009, 08:21 PM
Hello Jaakko,

I recommend you check whether your web.config file contains references to older version of RadControls for ASP.NET AJAX. For more information, please examine the following link:
Updating RadControls for ASP.NET to another version or license

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jaakko Hänninen
Top achievements
Rank 1
answered on 18 Aug 2009, 09:02 AM
There is no references with version numebers. At web.config there is only <add path="ChartImage.axd"... > and and aspx pages lines like this:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


0
Vlad
Telerik team
answered on 18 Aug 2009, 09:14 AM
Hello Jaakko,

Do you have any .refresh files in the bin folder of your application?

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jaakko Hänninen
Top achievements
Rank 1
answered on 18 Aug 2009, 09:25 AM
No there is. no refresh files

This is actually occuring on server where is not visual studio installed. I just copied files that I exported at visual studio with Publish tool. And copied everything to the server.

I uninstalled Telerik Reporting packages and older Telerik ASP:NET AJAX package at my development machine. At server there is nothing installed...only that Telerik.Web.UI.dll at my applications bin folder.
0
Daniel
Telerik team
answered on 20 Aug 2009, 02:43 PM
Hello Jaakko,

Please open your BIN folder and let us know whether the assembly version matches the version, referenced in your project. I attached a sample screenshot that demonstrates how to achieve this using Windows Explorer.

Here are some places that may contain references:

web.config
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/> 

*.csproj / *.vbproj
<Reference Include="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL">   
<SpecificVersion>False</SpecificVersion>   
<HintPath>..\..\..\..\..\..\..\Program Files\telerik\RadControls for ASPNET AJAX Q2 2009\Bin\Telerik.Web.UI.dll</HintPath>   
</Reference>   

as?x pages
<%@ Register Assembly="Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>   

GAC:
Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutralPublicKeyToken=121fae78165ba3d4processorArchitecture=x86  

Let us know what your findings are.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SK
Top achievements
Rank 1
answered on 14 Oct 2009, 03:19 AM
I cannot thank you enough for your post. You just saved me from a huge headache!
0
Nicolaï
Top achievements
Rank 2
answered on 03 Dec 2009, 01:51 PM
[edited: I spoke too soon. Error came back.. Waiting for reply from web host]

Best regards,
Nicolai
0
Daniel
Telerik team
answered on 08 Dec 2009, 06:52 PM
Hello Nicolai,

I'm not sure that I understand what you mean. Could you please elaborate?

Regards,
Daniel
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.
0
Nicolaï
Top achievements
Rank 2
answered on 09 Dec 2009, 07:18 AM
All right...

What I think happened (99% sure):
- For some reason (it was supposed to be impossible), someone managed to drop a radtreenode on itself, so it received the same "parent_id" as it's "_id" (PK).
- Server was building a treeview from the database and entered an infinite loop, adding the same node to itself... Until "Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies." showed up.... On every single application I've made... Deleting the Telerik dll, re uploading it, solved the problem for 2 minutes, which back as soon as someone was trying to open the faulty page.
- I believe the server ran out of space in a temp area.

Resolution:
- bulletproofed the db with a constraint on those fields, not allowing equal values.

Another note (for radtreeview,ajax):
- rechecked code, it wasn't supposed to be possible... The reason it happened anyway: when you drag a treenode around, I think you can still place it above an illegal node, and get a partial postback to fire with another control and have the node drop event load as well.

Conclusion:
must code faster, no time to change habits...j/k... Make sure your db is bulletproof.

Best regards,
Nicolai
ps: so the previous post came while in panic-mode and in desperate search for a solution...
0
Srihari
Top achievements
Rank 1
answered on 21 Jan 2011, 08:22 AM
@Damian: Thanks a million. This helped me :-)
Keep up the great work.

Thanks,
Srihari.
Tags
General Discussions
Asked by
Damian
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
john kerry
Top achievements
Rank 1
Katte
Top achievements
Rank 1
Daniel
Telerik team
Jones
Top achievements
Rank 1
Jaakko Hänninen
Top achievements
Rank 1
Vlad
Telerik team
SK
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Srihari
Top achievements
Rank 1
Share this question
or