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

Assembly parameter in web.config

10 Answers 430 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tgaud
Top achievements
Rank 1
Tgaud asked on 02 Sep 2009, 08:24 AM
Hi,

My problem is that in the

i have
<assemblies>
<add assembly="Telerik.Web.Design, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
<add assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
....
 </assemblies>

And each time i change the telerik version, it's a pain to change everything , the version etc.

and i have to do that in each page where i have the tag :

<%@ Register assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

Is there something to do, so it'll automatically take the DLL of the version of telerik installed ?
i'm on  visual studio 2008.

How can i modifiy that, to have only the telerik's setup to run when i want to change for the last version, without having to change every parameters in each web project i have.



10 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 02 Sep 2009, 12:58 PM
Hello,

Please check your web.config and update the reference to match the version of the newly deployed assembly. I went through your code and suspect that you are using strong name assembly references.
I am attaching a simple web.config, which works with any RadControls for ASP.NET AJAX version (with .NET 2.0 and System.Web.Extensions 1.0.61025.0)

Let us know if you still have troubles.

Greetings,
Pavlina
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
Tgaud
Top achievements
Rank 1
answered on 02 Sep 2009, 01:31 PM
Hmm, if i use 3.5 framework, can i still use your solution?
0
Pavlina
Telerik team
answered on 02 Sep 2009, 03:59 PM
Hi Tgaud,

If you use a .NET 3.5 project you will see that the EXE installation wizard of RadControls for ASP.NET AJAX automatically installs RadControls in the toolbox. Visual Studio 2008 automatically adds binding redirects in the web.config file:
Web.config and Binding Redirects in Visual Studio 2008

Greetings,
Pavlina
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
FAR
Top achievements
Rank 1
answered on 02 Sep 2009, 04:19 PM
Sure, but just tell me
in web config, my old lines are :
<assemblies>
<add assembly="Telerik.Web.Design, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
<add assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
 </assemblies>

What are the new one? Should I just remove thoses two lines ?

and in each page i have :
<%@ Register assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Web.UI" tagprefix="telerik" %>

what is the new line to write instead ?


And when i add the reference to the telerik.web.ui dll,   wich solution adopt :
1_ copy telerik.web.ui.dll  file from Telerik folder , to my project bin folder, and add the project reference to this bin folder
2_ add the project reference to the .net assembly telerik.web.ui.dll
0
Pavlina
Telerik team
answered on 03 Sep 2009, 04:13 PM
Hello,

Attached to this message is a simple web.config file. Give it a try and see if it works for you.
More information about how to add reference is available here:
Add/Remove RadControls to the Global Assembly Cache

Best wishes,
Pavlina
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
FAR
Top achievements
Rank 1
answered on 09 Sep 2009, 08:03 AM
well it's working, but not in production server, where my rachart doesnt appear (little red cross instead).
Telerik isnt installed in the production server, but i have the Telerik.web.ui.dll and Telerik.web.design.dll in my project bin folder.
so it should be ok.
0
Ves
Telerik team
answered on 14 Sep 2009, 07:36 AM
Hi,

Do you use a web farm? If so, please check this forum post.

Best regards,
Ves
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
Matt
Top achievements
Rank 1
answered on 05 Apr 2013, 01:43 PM
The web.config file that is attached doesn't even reference Telerik so how is it supposed to be helpful in determining Telerik versions and setting the right assembly?
0
rozer
Top achievements
Rank 1
answered on 13 Apr 2013, 08:46 AM
i have same error and i m using 4.0 2010 vs
0
Pavlina
Telerik team
answered on 18 Apr 2013, 11:01 AM
Hello,

I think the following KB article might help you solve the problem:
Error: Could not load file or assembly 'Telerik.Web.UI, Version=XXXXX.X.XXXX.X, Culture=neutral, PublicKeyToken=XXXX' or one of its dependencies

You should also need to search for fully qualified names that contains 2011.2.712.35 in your web config and delete them. The same error could happen if there is reference to this version in the controls declarations in the aspx / ascx file.

All the best,
Pavlina
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
Tgaud
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Tgaud
Top achievements
Rank 1
FAR
Top achievements
Rank 1
Ves
Telerik team
Matt
Top achievements
Rank 1
rozer
Top achievements
Rank 1
Share this question
or