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

[Solved] Assembly manifest problems with Telerik.Web.Mvc.2010.3.1220

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 22 Dec 2010, 09:32 AM
Hi!

After downloading the latest internal build yesterday I have tried for hours to solve this problem and hope you can help.

Could not load file or assembly 'Telerik.Web.Mvc.2010.3.1220' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.Mvc.2010.3.1220' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.Mvc.2010.3.1220' could not be loaded.
 
=== Pre-bind state information ===
LOG: User = MINDMANCER\victor
LOG: DisplayName = Telerik.Web.Mvc.2010.3.1220
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Telerik.Web.Mvc.2010.3.1220 | Domain ID: 7
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/Mindmancer/Mindview2/trunk/Portal/
LOG: Initial PrivatePath = D:\Mindmancer\Mindview2\trunk\Portal\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\Mindmancer\Mindview2\trunk\Portal\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/de6827b1/72b76569/Telerik.Web.Mvc.2010.3.1220.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/de6827b1/72b76569/Telerik.Web.Mvc.2010.3.1220/Telerik.Web.Mvc.2010.3.1220.DLL.
LOG: Attempting download of new URL file:///D:/Mindmancer/Mindview2/trunk/Portal/bin/Telerik.Web.Mvc.2010.3.1220.DLL.
WRN: Comparing the assembly name resulted in the mismatch: NAME
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
 
 
Stack Trace:
 
[FileLoadException: Could not load file or assembly 'Telerik.Web.Mvc.2010.3.1220' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
 
[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.Mvc.2010.3.1220' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591
 
[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.Mvc.2010.3.1220' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8950644
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
 
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Basically, I think I have tried everything, but obviously I have missed something. I have removed and readded the references to the dll several times, renamed them, moved them to new folder, checked that they arent in the GAC. I have searched in all files in the solution folder for any references to Telerik.Web.Mvc with any kind of version information and found it in the two .csproj files for the projects that reference them but nowhere else. In the .csproj the reference looks like this:

<Reference Include="Telerik.Web.Mvc.2010.3.1220">

In all relevant .config files I only have Telerik.Web.Mvc, no version information.

I use .net 4 and Asp.net Mvc 3 RCII.


I really hope you can shed some light over this issue!
/Victor


1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 22 Dec 2010, 10:04 AM
Hello Victor,

I'm afraid that I'm unable to recreate such behavior locally. I have attached a simple MVC3 test project which works as expected. Please let me know if I'm missing something obvious.

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Victor
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or