locked
Issues importing MP with custom form RRS feed

  • Question

  • Helo,

     I am trying to create a custom form following the steps in blog:

    http://blogs.technet.com/servicemanager/archive/2010/01/08/creating-custom-forms-for-service-manager-using-custom-controls-service-request-example.aspx

    The MP bundles fine. I am recivig the follwoing errors when inporting the MPB file into service manager:

    System.ArgumentException: The requested management pack was invalid. See inner exception for details.
    Parameter name: managementPack ---> : Verification failed with [4] errors:
    -------------------------------------------------------
    Error 1:
    : Invalid Target attribute value. The element [Category.ServiceRequestFolderGetsConsoleViewTasks] references a Target element that cannot be found.

    -------------------------------------------------------
    Error 2:
    : Failed to verify ImageReference [[ManagementPackElement=View.AllHVDServiceRequests in ManagementPack:[Name=Virtual.Desktop.ServiceRequest,

    KeyToken=, Version=10.1.20.1]]]
    Cannot find ManagementPackElement [Type=ManagementPackElement, ID=View.AllHVDServiceRequests] in ManagementPack

    [ManagementPack:[Name=Virtual.Desktop.ServiceRequest, KeyToken=, Version=10.1.20.1]]
    -------------------------------------------------------
    Error 3:
    : Failed to verify FolderItem: [[ManagementPackElement=View.AllHVDServiceRequests in ManagementPack:[Name=Virtual.Desktop.ServiceRequest, KeyToken=,

    Version=10.1.20.1]]]
    Cannot find ManagementPackElement [Type=ManagementPackElement, ID=View.AllHVDServiceRequests] in ManagementPack

    [ManagementPack:[Name=Virtual.Desktop.ServiceRequest, KeyToken=, Version=10.1.20.1]]
    -------------------------------------------------------
    Error 4:
    : Failed to verify TypeProjection: [TypeProjection.HVDServiceRequest]
    Failed to verify component path

    [$Target/Path[Relationship='WorkItem!System.WorkItemAssignedToUser']$] for component with alias [AssignedTo]Cannot resolve identifier

    [WorkItem!System.WorkItemAssignedToUser] in the context of ManagementPack [Virtual.Desktop.ServiceRequest]. Unknown alias [WorkItem]
    -------------------------------------------------------

    Invalid Target attribute value. The element [Category.ServiceRequestFolderGetsConsoleViewTasks] references a Target element that cannot be found.
       --- End of inner exception stack trace ---
       at Microsoft.EnterpriseManagement.UI.DataModel.DataPortalService.EndQuery(IAsyncResult result)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Uri dataSourceUri, IList`1 inputs,

    Dictionary`2 parameterList, DataQueryBase query)
       at Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common.DataAccessQuery.QueryAdapter(Uri adapterUri, Type adapterType, Uri dataSourceUri,

    Dictionary`2 parameterList, IList`1 inputs)
       at Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.MP.ManagementPackHelper.ImportManagementPack(ManagementPackItem item)


    Any suggestion would be helpful,

    Thursday, January 21, 2010 8:01 PM

Answers

  • For the first error do a search for 'Category.ServiceRequestFolderGetsConsoleViewTasks'.  That <Category> element will have an attribute called 'Target' which is pointing at something which doesnt exist in your MP.  Either update the Target to point to a class that does exist or remove this Category element.

    For the second error - in the Image References section you have an image reference that is pointing to a view - View.AllHVDServiceRequests - which doesnt exist in the MP.  Either update the ElementID attribute or remove the Image Reference.

    For the third error - same as the second error - the view doesnt exist.  Either update or remove the FolderItem element.

    For the fourth error - you need to add a reference to the System.WorkItem MP in the References section at the top of the MP

    <

     

    Reference Alias="WorkItem">

    <

     

    ID>System.WorkItem.Library</ID>

    <

     

    Version>7.0.5244.0</Version>

    <

     

    PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

    </

     

    Reference>


    Travis Wright Senior Program Manager Lead Microsoft
    Thursday, January 21, 2010 8:51 PM

All replies

  • For the first error do a search for 'Category.ServiceRequestFolderGetsConsoleViewTasks'.  That <Category> element will have an attribute called 'Target' which is pointing at something which doesnt exist in your MP.  Either update the Target to point to a class that does exist or remove this Category element.

    For the second error - in the Image References section you have an image reference that is pointing to a view - View.AllHVDServiceRequests - which doesnt exist in the MP.  Either update the ElementID attribute or remove the Image Reference.

    For the third error - same as the second error - the view doesnt exist.  Either update or remove the FolderItem element.

    For the fourth error - you need to add a reference to the System.WorkItem MP in the References section at the top of the MP

    <

     

    Reference Alias="WorkItem">

    <

     

    ID>System.WorkItem.Library</ID>

    <

     

    Version>7.0.5244.0</Version>

    <

     

    PublicKeyToken>31bf3856ad364e35</PublicKeyToken>

    </

     

    Reference>


    Travis Wright Senior Program Manager Lead Microsoft
    Thursday, January 21, 2010 8:51 PM
  • Thanks Travis. That fixed my issue. I am able to import the Management pack now. But, when I select create new service request nothing happens. I am not receiving any errors.
    Thursday, January 21, 2010 10:53 PM
  • Can you please email your entire project (MP .xml file, Visual Studio project for your form, etc) in a .zip to scsmbeta [at] live [dot] com?  We'll take a look!
    Travis Wright Senior Program Manager Lead Microsoft
    Thursday, January 21, 2010 11:56 PM
  • Thanks Travis. The files have been sent via emai.
    Friday, January 22, 2010 4:08 PM
  • Hi

    Are you using the code project Travis included in the post or did you create your own?

    A wild guess...

    Your problem could be related to the declarations of the form. Double check that the you have included the namespace when pointing out the TypeName of your custom form. And that the Assembly points out a assembly referenced correctly in the "Reference" section of your MP.

    <

     

    Form ID="ServiceRequestForm" Accessibility="Public" Target="TheNameOfYourProjection" Assembly="YourFormsAssembly" TypeName="Your.Namespace.NameOfForm">


    Patrik Sundqvist Solutions Architect @ Atea Spintop
    Saturday, January 23, 2010 10:57 AM
  • We've taken the rest of this thread offline.
    Travis Wright Senior Program Manager Lead Microsoft
    Saturday, February 6, 2010 12:07 AM