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

System.Web.Extensions - referencing incorrect version

6 Answers 155 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jimmy
Top achievements
Rank 1
Jimmy asked on 30 Jan 2009, 09:30 AM
Hi.

I have read through a couple of posts on this forum, but wasn't able to find a solution.

I have built a project using VS 2005 that uses the Telerik .NET 3.5 assembly. This, however, only works, when the System.Web.Extensions (v. 1.0.61025.0) is installed on my system. Why is that? I'd say it is supposed to use the .NET 3.5 version of System.Web.Extension which my project is referencing. I am absolutely sure I'm using Telerik for .NET 3.5. I have even verified this using the .NET Reflector tool.

I don't suppose Telerik is dynamically loading System.Web.Extensions v. 1.0.x (?)

Any suggestions would be appriciated, thanks in advance.

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 Jan 2009, 11:05 AM
Hello Jimmy,

I recommend you take a look at the version of your Telerik.Web.UI.dll.

Example:
2008.03.1314.20 - NET 2.0 version
2008.03.1314.35 - NET 3.5 version

You can get the 3.5 version from your bin35 folder.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jimmy
Top achievements
Rank 1
answered on 30 Jan 2009, 11:10 AM
Hi Daniel.

Thank you for taking the time to read my post.
As I described, I am absolutely sure I am using the Telerik 3.5 DLL (from the bin35 folder).

To verify, this is the reference shown in the .NET Reflector:
// Assembly Reference Telerik.Web.UI
Version: 2008.3.1125.35
Name: Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
As you can see, I'm using the .NET 3.5 assembly.
0
Daniel
Telerik team
answered on 30 Jan 2009, 11:45 AM
Hello Jimmy,

Please share the contents of your web.config with us.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jimmy
Top achievements
Rank 1
answered on 30 Jan 2009, 12:02 PM
Hello again.

My Web.Config file is now available here: http://pastebin.ca/1322698
0
Accepted
Daniel
Telerik team
answered on 30 Jan 2009, 12:15 PM
Hello Jimmy,

I found the following reference:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.3.1125.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> 

Please let us know whether the problem persists.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jimmy
Top achievements
Rank 1
answered on 30 Jan 2009, 01:19 PM
Hi Daniel.

Yes, that was it! It finally works with the System.Web.Extension.dll version 3.5.
Not only did I have an incorrect reference in web.config, I also had the wrong version of the Telerik Assembly in my GAC. I'm very surprised that I didn't receive an exception - after all I was referencing a DLL that didn't exist in the GAC, nor in the Inetpub Bin folder.

Also, I don't remember how that entry ended up in my Web.Config. Most likely I added it myself, but I can't seem to find any documentation that describes the need to add a HttpHandler, unless you are using Vista and IIS7 (http://www.telerik.com/help/aspnet-ajax/registering_the_httphandlers_on_windows_vista_iis_7_integrated_mode.html). It is necessary though - an exception is thrown if it is not present. I guess I googled the exception and found the solution on some website.

Never the less, you solved my program, so thank you very much. We are almost ready to purchase licenses now. I'm very pleased with RadControl, and the support has just been proven very useful :)

Best regards
Jimmy Thomsen
Tags
General Discussions
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Jimmy
Top achievements
Rank 1
Share this question
or