Deploying to WebApplication bin rather than GAC for MOSS

5 posts, 0 answers
  1. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 26 May 2009 Link to this post

    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.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 May 2009 Link to this post

    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.

  3. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 01 Jun 2009 Link to this post

    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?
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Jun 2009 Link to this post

    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.
  5. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 02 Jun 2009 Link to this post

    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.
Back to Top