Home Service Manager

Working on my first custom form - Console Crashes

RomualdtRomualdt Member IT Monkey ✭
I have created a custom class inherited from a change request. I added 2 relationships and 2 lists.  I think I have the type projections correct.  I can import the MPB file created is Visual studio no problem.  Then I used the authoring to create another MP to store my custom form. The base class of the form is the class from the first MP I created.  The assembly reference is Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms.dll the type is change request from.  After bundling and importing the MPB file, the service manager crashes when I try to create a template based off the custom form.

Any help with  the management packs (below) would help.

Here is my class MP
  <?xml version="1.0" encoding="utf-8" ?>
- <ManagementPack SchemaVersion="2.0" ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <Manifest>
- <Identity>
  <ID>BlueChangeRequestsMP</ID>
  <Version>1.0.0.64</Version>
  </Identity>
  <Name>SJBlueBeeChangerequestV4</Name>
- <References>
- <Reference Alias="Authoring">
  <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring</ID>
  <Version>7.5.7487.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
- <Reference Alias="Windows.Lib">
  <ID>Microsoft.Windows.Library</ID>
  <Version>7.5.8501.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
- <Reference Alias="SystemLib">
  <ID>System.Library</ID>
  <Version>7.5.8501.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
- <Reference Alias="ServiceMangerChangeRequest">
  <ID>System.WorkItem.ChangeRequest.Library</ID>
  <Version>7.5.7487.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
  </References>
  </Manifest>
- <TypeDefinitions>
- <EntityTypes>
- <ClassTypes>
- <ClassType ID="BlueBeeChangeRequest.Class" Base="ServiceMangerChangeRequest!System.WorkItem.ChangeRequest" Accessibility="Public" Abstract="false" Hosted="false" Singleton="false">
  <Property ID="BBModule" Key="false" Type="string" />
  <Property ID="BBArea" Key="false" Type="string" />
  <Property ID="BlueBeeModuleList" Key="false" Type="enum" EnumType="BlueBeeModuleListEnum" />
  <Property ID="BlueBeeAreaList" Key="false" Type="enum" EnumType="BlueBeeAreaListEnum" />
  </ClassType>
  </ClassTypes>
- <RelationshipTypes>
- <RelationshipType ID="SJBlueBeeChangeRequestMP.Relationship.Tester" Base="SystemLib!System.Reference" Abstract="false" Accessibility="Public">
  <Source ID="Source" MinCardinality="0" MaxCardinality="2147483647" Type="BlueBeeChangeRequest.Class" />
  <Target ID="Target" MinCardinality="0" MaxCardinality="1" Type="Windows.Lib!Microsoft.AD.User" />
  </RelationshipType>
- <RelationshipType ID="SJBlueBeeChangeRequestMP.Relationship.Approver" Base="SystemLib!System.Reference" Abstract="false" Accessibility="Public">
  <Source ID="Source" MinCardinality="0" MaxCardinality="2147483647" Type="BlueBeeChangeRequest.Class" />
  <Target ID="Target" MinCardinality="0" MaxCardinality="1" Type="Windows.Lib!Microsoft.AD.User" />
  </RelationshipType>
  </RelationshipTypes>
- <EnumerationTypes>
  <EnumerationValue ID="BlueBeeModuleListEnum" Accessibility="Public" Comment="Blue Bee Module" />
  <EnumerationValue ID="BlueBeeAreaListEnum" Accessibility="Public" Comment="Blue Bee Area" />
  </EnumerationTypes>
- <TypeProjections>
- <TypeProjection ID="BB.TP.Full" Accessibility="Public" Type="BlueBeeChangeRequest.Class">
  <Component Path="$Target/Path[Relationship='SJBlueBeeChangeRequestMP.Relationship.Tester']$" Alias="BlueBeeTester" />
  <Component Path="$Target/Path[Relationship='SJBlueBeeChangeRequestMP.Relationship.Approver']$" Alias="BlueBeeApprover" />
  </TypeProjection>
  </TypeProjections>
  </EntityTypes>
  </TypeDefinitions>
- <Categories>
  <Category ID="BlueBeeModule.List" Target="BlueBeeModuleListEnum" Value="Authoring!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.EnumerationViewTasks" />
  <Category ID="BlueBeeArea.List" Target="BlueBeeAreaListEnum" Value="Authoring!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.EnumerationViewTasks" />
  <Category ID="BlueBeeModule.List.Visible" Target="BlueBeeAreaListEnum" Value="SystemLib!VisibleToUser" />
  <Category ID="BlueBeeArea.List.Visible" Target="BlueBeeModuleListEnum" Value="SystemLib!VisibleToUser" />
  </Categories>
- <LanguagePacks>
- <LanguagePack ID="ENU" IsDefault="true">
- <DisplayStrings>
- <DisplayString ElementID="BlueBeeModule.List">
  <Name>Blue Bee Module</Name>
  <Description>Blue Bee Module</Description>
  </DisplayString>
- <DisplayString ElementID="BlueBeeChangeRequest.Class">
  <Name>BlueBeeChangeRequest</Name>
  <Description />
  </DisplayString>
- <DisplayString ElementID="SJBlueBeeChangeRequestMP.Relationship.Tester">
  <Name>Blue Bee Tester</Name>
  <Description>Person Who will Test Changes In Day Old</Description>
  </DisplayString>
- <DisplayString ElementID="SJBlueBeeChangeRequestMP.Relationship.Approver">
  <Name>Blue Bee Approver</Name>
  <Description>Person Who Will Approve Changes In Live</Description>
  </DisplayString>
  </DisplayStrings>
  <KnowledgeArticles />
  </LanguagePack>
  </LanguagePacks>
  </ManagementPack>


and this is the custom form MP:
- <ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <Manifest>
- <Identity>
  <ID>BBChangeRequestFormMP</ID>
  <Version>1.0.0.2</Version>
  </Identity>
  <Name>BBChangeRequestFormMP</Name>
- <References>
- <Reference Alias="System">
  <ID>System.Library</ID>
  <Version>7.5.8501.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
- <Reference Alias="Console">
  <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
  <Version>7.5.7487.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
- <Reference Alias="Alias_c6b2a64b_8000_45d6_b3d4_d559fa7b7ea3">
  <ID>BlueChangeRequestsMP</ID>
  <Version>1.0.0.31</Version>
  <PublicKeyToken>9d61c7b2480bc85c</PublicKeyToken>
  </Reference>
- <Reference Alias="Alias_4270d8b6_1e06_4e52_81a5_18be9b50fe52">
  <ID>Microsoft.EnterpriseManagement.ServiceManager.Authoring.Forms</ID>
  <Version>7.5.7487.0</Version>
  <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
  </Reference>
  </References>
  </Manifest>
- <Categories>
- <Category ID="BBChangeRequestFormMP.Category" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.ManagementPack">
  <ManagementPackName>BBChangeRequestFormMP</ManagementPackName>
  <ManagementPackVersion>1.0.0.0</ManagementPackVersion>
  </Category>
  </Categories>
- <Presentation>
- <Forms>
- <Form ID="BlueBeeChangeRequestForm" Accessibility="Public" Target="Alias_c6b2a64b_8000_45d6_b3d4_d559fa7b7ea3!BlueBeeChangeRequest.Class" Assembly="Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms" TypeName="Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms.ChangeRequestForm">
  <Category>Form</Category>
  </Form>
  </Forms>
  </Presentation>
- <LanguagePacks>
- <LanguagePack ID="ENU" IsDefault="true">
- <DisplayStrings>
- <DisplayString ElementID="BBChangeRequestFormMP">
  <Name>BBChangeRequestFormMP</Name>
  </DisplayString>
- <DisplayString ElementID="BlueBeeChangeRequestForm">
  <Name>BlueBeeChangeRequestForm</Name>
  <Description>Specify your form description.</Description>
  </DisplayString>
  </DisplayStrings>
  </LanguagePack>
  </LanguagePacks>
- <Resources>
  <Assembly ID="Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms" Accessibility="Public" FileName="Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms.dll" HasNullStream="false" QualifiedName="Microsoft.EnterpriseManagement.ServiceManager.ChangeManagement.Forms, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </Resources>
  </ManagementPack>

Best Answer

Answers

This discussion has been closed.