none
Add request comment when joining a group RRS feed

  • Question

  • Hi All,

    This question is a direct spin-off of this thread:

    http://social.technet.microsoft.com/Forums/en-US/0b1c917c-6752-4e3c-bde9-dbebf9679c51/can-i-add-request-comment-when-joining-group?Thread%3A0b1c917c-6752-4e3c-bde9-dbebf9679c51=Microsoft.Forums.Data.Models.Discussion&ThreadViewModel%3A0b1c917c-6752-4e3c-bde9-dbebf9679c51=Microsoft.Forums.CachedViewModels.ThreadPageViewModel

    I want to add a "Comments" box to the FIM portal page when a user requests to Join a group. At the moment, I'm only dealing with "Join Group" and not with "Add Members" page.

    Following the link above, I have done the following things:

    • Installed the Microsoft.ResourceManagement.Client and Microsoft.ResourceManagement.ObjectModel into the GAC
    • Added a custom page for JoinGroups.aspx and put in the redirect so that the user should see this page

    So far this is ok, but when I try and open the page, I get an odd error:

    c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\Custom\JoinGroups.aspx.cs(156): error CS0012: The type 'Microsoft.ResourceManagement.ObjectModel.RmResource' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.ResourceManagement.ObjectModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.   at System.Web.Compilation.AssemblyBuilder.Compile() 

    The code behind file already has a reference to Microsoft.ResourceManagement.ObjectModel, and so does the aspx file, so I'm a bit lost here. 

    The changes from the original post I have done are that I wasn't able to easily install the assemblies to GAC. To do so, I converted them to strongly-typed first, then added them to GAC using powershell, which created the assemblies in GAC with version number 1.0.0.0 and a differerent public key compared to the original thread. I changed my references in the aspx file accordingly, and now I encounter this problem.

    I have probably done something wrong in adding the assembly to the GAC since it wasn't quite as straightforward as I thought it would be, so that might be the source of the problem but I can't figure out what. 

    Any suggestions/tips on how to resolve this will be much appreciated.

    Thanks

    Monday, July 15, 2013 5:30 PM