Error on using listpicker on a custom SCSM Form

Frank Vanhoorne 41 Reputation points
2022-09-14T13:09:56.577+00:00

I recompiled my custom form in VS2019 , because I added some new properties. I get an error on loading the form in SCSM console.

I get the error :
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException: 'Set connectionId threw an exception.' Line number '17' and line position '14'. ---> System.TypeLoadException: Could not load type 'Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker' from assembly 'Microsoft.EnterpriseManagement.UI.SMControls, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

When I remove all my listpickers the form does load in SCSM console

SCSM Version used : 10.19.1035.0

I have't recompiled this custom form since 2017 . The compiled old version does still work without error.
VS Compiles using .net 4.5.1

Please help

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
237 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Frank Vanhoorne 41 Reputation points
    2022-09-16T12:17:03.52+00:00

    the related thread is not helping me.
    When I use the old dll's , I can compile but I get the error in the console (I expect it uses the current version of dll's)
    When I use the new dll's ( heck I can't find CommunicatorAPIInterop.dll on the new version of the console) , I can not compile because in VS 2019)
    I get
    Severity Code Description Project File Line Suppression State
    Error The tag 'ListPicker' does not exist in XML namespace 'http://schemas.microsoft.com/SystemCenter/Common/UI/Wpf'. Line 29 Position 22. AMG.SCSM.CustomFormTemplates C:\TFS\IAM-Infra\WPI.SCSM\Development\Code\Client\Solutions\AMG.SCSM.CustomFormTemplates\AMGCITemplate.xaml 29

    and lots of errors ...

    It's like when I want to use the new versions I am missing some DLL's

    0 comments No comments

  2. Frank Vanhoorne 41 Reputation points
    2022-09-16T14:55:05.537+00:00

    so the overal effect is :

    When I use the old dll's at design time I have no error compiling, but at runtime in the console I get the error : can not find listpicker

    When I use the new dll's at design time I can't compile ; I get the error : The tag 'ListPicker' does not exist in XML namespace 'http://schemas.microsoft.com/SystemCenter/Common/UI/Wpf'

    I can't find followin dlls on the scsm server :

    Microsoft.EnterpriseManagement.ServiceManager, Microsoft.EnterpriseManagement.ServiceManager.UI.Common, and CommunicatorAPIInterop.dll.


  3. Frank Vanhoorne 41 Reputation points
    2022-09-27T16:37:45.337+00:00

    Resolved

    First of all , use all the latest dll's in your development

    Then use

    xmlns:scwpf="http://schemas.microsoft.com/SystemCenter/Common/UI/Wpf"
    for the list picker

    do not use xmlns:smcontrols="clr-namespace:Microsoft.EnterpriseManagement.UI.WpfControls;assembly=Microsoft.EnterpriseManagement.UI.SMControls"
    for the list picker

    use xmlns:smcontrols="clr-namespace:Microsoft.EnterpriseManagement.UI.WpfControls;assembly=Microsoft.EnterpriseManagement.UI.SMControls"
    for the user picker

    I get a designer error on the use of smcontrols (userpicker)

    System.IO.FileNotFoundException
    Could not load file or assembly 'Microsoft.Lync.Model, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies.

    But it works at runtime

    Listpicker is fixed


  4. Yasser Sobhdel 41 Reputation points
    2024-04-27T05:04:53.61+00:00

    I had the same problem, the ListPicker is not located in SMControls any more.

    New location of this component is SdkDataAccess.dll

    Make sure you use latest Dlls.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.