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

Getting frustrated - 2 errors that keep popping up!

8 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
TSCGlobal
Top achievements
Rank 1
TSCGlobal asked on 04 May 2010, 02:10 PM
Alright...every time I drag an "old" telerik control that uses version 2009.3.1314.20 of the .dll, it overwrites the newer version of 2009.3.1314.35. As a result, it gives me the following error:

"Could not load file or assembly "Telerik.Web.UI, Version=2009.3.1314.35...or one of its dependencies.  The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

 I have tried for two days to figure out how to fix this, or to stop this incessant overwriting, but I have been unable to do so.  Worse still, I am now at least 2 days behind on my project, and my supervisors are wondering if we shouldn't just go back to the 'old' tools we had instead of using Telerik, because this looks like (at least, it does to them) that Telerik has some serious stability issues to address.  I can't say I disagree....

The second problem is an error that says:

"Cannot create an object of type 'System.String[]' from its string representation 'KeyField' for the 'DataKeyNames' property."

This error is especially infuriating because I have the EXACT SAME CODE on another page....and it WORKS!  I have no idea what the problem is, or how to fix this.  Attached is a screenshot (cropped) of the errors in question.  I really need some help here before I throw my monitor out the nearest window!

8 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 04 May 2010, 02:44 PM
Hi Beemer,

Actually, these two assemblies are the same version - 2009.3.1314. The only difference is that the first one is built for .NET Framework 2.0 - 2009.3.1314.20, and the second one is built for .NET 3.5 - 2009.3.1314.35
In your case, I suppose that you try to use the Telerik assembly built for .NET35 in a project that is configured for .NET20 and this is causing the errors.

If you have decided to update the assembly, I recommend you to update to the recent version of the controls which is 2010.1 415.

I hope this helps.

Sincerely yours,
Fiko
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.
0
TSCGlobal
Top achievements
Rank 1
answered on 04 May 2010, 04:49 PM
I checked the web.config file and it is configured as a .NET 3.5 app.  I updated the controls, but I still have the same issue.  If anything, the update exacerbated the problem.  Now my master page is showing the same errors for ALL my telerik controls; Ajax Manager, Script Manager, Dock Layout, Dock Zone, Menu, Grids...you name it.
0
TSCGlobal
Top achievements
Rank 1
answered on 05 May 2010, 04:09 PM
Ok, it's been 2 days and I still have not been able to fix this.  Since nothing else I have tried has worked, I chose to take a more extreme route, because I'm getting desperate.  Here's what I've done;

1. Uninstalled all Telerik controls/products.
2. Repaired/reinstalled VS2008
3. Reinstalled VS2008 SP1
4. Downloaded/installed the latest version of Telerik controls
5. Checked to make sure the correct .dll and .design files were in the bin/GAC respectively.
6. Removed all tabs for telerik controls, created a new tab, and dropped the .dll on it to reference the newest controls
7. Reopened the project in question, and ran the update wizard.
8. Opened a file and switched to design view....

I STILL get a message saying:

"Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.415.35....blah, blah....The located assembly's manifest definition does not match the assembly reference"

I checked to make sure the correct .design files were in GAC - and they were. They were the correct version, and even had the same PublicKeyToken....but the dang thing still won't load. I need help.  I'm completely out of ideas.  I have a lot riding on this project.  If I can't get this to work, my job may be in jeapardy...

This is the thing...on my home computer, this thing works. I checked the GAC, and it is the same .design files. Same version .dll's...the setup is identical.

0
Lini
Telerik team
answered on 07 May 2010, 11:32 AM
Hello,

What you can do is try to remove all version information about Telerik.Web.UI from your application and make sure that a Telerik.Web.UI.dll file is in the bin folder of the application. This way the Visual Studio designer will not try to load a specific version of the assembly and just use what is in the bin folder. You might need to restart VS 2008 after you make the changes to ensure that you are not seeing a cached version of the designer.

To remove the version information, simply do a global search for "Telerik.Web.UI, Version=" and replace the full name, e.g.:

"Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

with the assembly name only:

"Telerik.Web.UI"

The changes (if any) should be in the web.config file and ASPX/ASCX files in your application.

All the best,
Lini
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.
0
TSCGlobal
Top achievements
Rank 1
answered on 07 May 2010, 12:18 PM
What I did was end up resetting my work computer yesterday. This corrected the issue.  I don't think I'll ever really know what happened, but it seems it runs fine now. Weird...
0
mukund katpatal
Top achievements
Rank 1
answered on 16 Dec 2011, 08:40 PM
I have .Net framework 3.5 project and I referenced both Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4 and version 2009.3.1208.35 same public key tocken.
I dont have this in GAC and I tried referencing this from shared as well as local drive. I still get the same could not load assembly or one of it's dependancy error.

I have installed the telerik.

If I create a separate project and use telerik, it does not add <add assembly > entry for telerik and everything works well in that project. What am I missing?
0
mukund katpatal
Top achievements
Rank 1
answered on 16 Dec 2011, 08:40 PM
I have .Net framework 3.5 project and I referenced both Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4 and version 2009.3.1208.35 same public key tocken.
I dont have this in GAC and I tried referencing this from shared as well as local drive. I still get the same could not load assembly or one of it's dependancy error.

I have installed the telerik.

If I create a separate project and use telerik, it does not add <add assembly > entry for telerik and everything works well in that project. What am I missing?
0
Lini
Telerik team
answered on 19 Dec 2011, 09:27 AM
Hello Mukund Katpatal,

If you have installed the RadControls for ASP.NET AJAX, you can use the Visual Studio Extensions (the Telerik menu in VS) to create a new project with all the references and settings for Telerik.Web.UI already included.

Note that you cannot reference two versions of Telerik.Web.UI in the same project - you should use only the latest version and remove references to older versions. If you have code that references older versions and do not wish to update it, you should add a <bindingRedirect> element in the Web.config file of the web application to redirect the old version to the new one:
<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
      <bindingRedirect oldVersion="2009.3.1208.35" newVersion="2009.3.1314.35"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>


Regards,
Lini
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
TSCGlobal
Top achievements
Rank 1
Answers by
Fiko
Telerik team
TSCGlobal
Top achievements
Rank 1
Lini
Telerik team
mukund katpatal
Top achievements
Rank 1
Share this question
or