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

Strong Name Problem

5 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
cmehta
Top achievements
Rank 1
cmehta asked on 04 Feb 2009, 07:33 AM
Hi

We have purchased Telerik UI suite in Nov, 07.

RadControls for AJAX is using a strong name key.

We want to add new features to the code using our own assemblies which are not strong named. So, we are not able to build the code with our assemblies referenced.

It would not be possible for us to make our assemblies strong named.

So, can you please give us the solution to remove the strong name constraint to build Telerik code.

We have tried at our end the following:
In project properties, we unchecked the option Sign the Assembly, and deleted the snk files in the projects Telerik.Web.Charting and Telerik.Web.UI
We got the error:
Error    384    Friend access was granted to 'Telerik.Web.UI, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d7f4574851eb0ea83c0b26dfc9d3569e654c8b902eaab99858ddb7aa4b9b68190f74571d9b572b93c089f3b86a74fe1f72ead3eafc6c928ff4576e3bc49904d1360f6776898125ecb928a5365968d9d1931987e382c0110a944139aba1035d0e0d9cfe84803a8d02ae8d38f9709fd910558bb1233840b3eaa2875b1f35d024b3', but the output assembly is named 'Telerik.Web.UI, Version=2008.2.1001.0, Culture=neutral, PublicKeyToken=null'. Try adding a reference to 'Telerik.Web.UI, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d7f4574851eb0ea83c0b26dfc9d3569e654c8b902eaab99858ddb7aa4b9b68190f74571d9b572b93c089f3b86a74fe1f72ead3eafc6c928ff4576e3bc49904d1360f6776898125ecb928a5365968d9d1931987e382c0110a944139aba1035d0e0d9cfe84803a8d02ae8d38f9709fd910558bb1233840b3eaa2875b1f35d024b3' or changing the output assembly name to match.    d:\Projects\Framework\Telerik\RadControlsAjaxSource\Telerik.Charting\bin\Release\Telerik.Charting.dll    Telerik.Web.UI.20

Can you please provide a solution for this?
Please mark a copy of reply to: chetan.mehta@cognizant.com

Regards
Chetan

5 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 05 Feb 2009, 08:47 AM
Hi Chetan,

We are using InternalsVisibleTo to reference between Telerik Charting and Telerik Web UI and for other internal references and that is why we can not remove the strong name. Is there any particular reason why you do not want to sign your own assemblies?


Regards,
Ivo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
cmehta
Top achievements
Rank 1
answered on 06 Feb 2009, 12:12 PM
We need to add a new feature to RadGrid using our own code. This requires adding a custom DAL layer as a reference to the C sharp project. It is not feasible for us to make our assmbly strong name because it is built over an API for which we don have source code.

If we cannot  remove the strong name as you said, please suggest how to add reference to an assembly which is not strong named to Telerik.Web.UI project.

Please mark reply to:
- chetan.mehta@cognizant.com
- rohit.virmani@cognizant.com

Regards
Chetan
Framework Team
marketRx (A Cognizant company)


0
Ivo
Telerik team
answered on 06 Feb 2009, 12:42 PM
Hi Chetan,

You will need to inherit RadGrid and then add the new feature in the inherited grid.
There is info about RadGrid inheritance in the documentation:
http://www.telerik.com/help/aspnet-ajax/grdinheritance.html

Best wishes,
Ivo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
cmehta
Top achievements
Rank 1
answered on 09 Feb 2009, 05:14 AM
But we are adding the new features by making RadGrid class partial and adding new features in another file with partial class. i.e. We are writing our code in the source code of Grid.
In this case, we need to get a method to reference the assemblies which are not strong named to Telerik.Web.UI (which is strong named).
1) Can you please provide a solution for this: how to add non strong named assemblies to strong named ones OR
2) How to remove strong name and get the code still compiled and error free?

Please mark a copy to:
- chetan.mehta@cognizant.com
- rohit.virmani@cognizant.com

Regards
Chetan
0
Atanas Korchev
Telerik team
answered on 09 Feb 2009, 08:20 AM
Hi cmehta,

Unfortunately both things are not possible:
  1. It is not possible a strongly named assembly to reference non strongly named ones
  2. Two other assemblies (Telerik.Charting.dll and Telerik.Apoc.dll) have the InternalsVisibleTo attribute applied to them so you cannot remove the strong name from Telerik.Web.UI.dll either.

The only possible solution in your case is to inherit from RadGrid instead of making it partial.

Regards,
Atanas Korchev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
cmehta
Top achievements
Rank 1
Answers by
Ivo
Telerik team
cmehta
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or