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

Deploying to WebApplication bin rather than GAC for MOSS

4 Answers 90 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 26 May 2009, 11:31 PM
I'm developing a strategy for using Telerik controls within MOSS. Currently, my thinking is that I would prefer to deploy to the WebApplication bin directory rather than the GAC. The reason is I would like to minimize the amount of maintenance required when upgrading to a new version of Telerik controls. By deploying to the bin directory I should be able to reference the assembly in the config files without the full assembly name that includes the version number (haven't tried this on SafeControls yet - that one may get me).

Curious if there is any feedback as to whether this is a good approach, bad approach, any gotchas I may run into, etc.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 May 2009, 08:25 AM
Hello rh,

Deploying in bin is generally not recommended because RadControls will not work in the default trust level (WS_MINIMAL). You need to increase the trust level to FULL or at leas Medium in order for RadControls to work. Other than that there are no known issues - registering SafeControls should work without the version attribute.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
rh
Top achievements
Rank 1
answered on 01 Jun 2009, 09:53 PM
OK, I'll deploy to the GAC. I've created a feature to install the appropriate web.config entries. I've found that I can omit the version number from the assembly attributes in the web.config entries and it will work. In this case it is suppose to always use the latest version that is in the GAC.

The next thing I'm not sure about is the following scenario:

Create a web part that references and uses RAD Controls for ASP.NET AJAX version 2009.1.401.35.

Quarter 2 comes along and a new version of the controls is released. Install this new version on the server in the GAC and remove the old version from the GAC. So now we only have version 2009.2.x.x in the GAC. Will the web part above that references 2009.1.401.35 break or will it automatically pick up and use the new version?
0
Atanas Korchev
Telerik team
answered on 02 Jun 2009, 07:55 AM
Hi rh,

We have not tested this specific scenario but I guess it would work. It may require only a <bindingRedirect /> in web.config.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
rh
Top achievements
Rank 1
answered on 02 Jun 2009, 03:09 PM
OK, I'll have to test this scenario out. Without it I honestly don't see how we can use Telerik controls within MOSS because it would be too much of a maintenance issue to have to update every single one of our features every time we wanted to upgrade to a new version of the Telerik controls.
Tags
Sharepoint Integration
Asked by
rh
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
rh
Top achievements
Rank 1
Share this question
or