none
stopped-extension-dll-no-implementation: a configured extension for this management agent does not contain a class implementing the required interface RRS feed

  • Question

  • Hi all,

    My name is Daniel and I'm new to this community.

    I'm developing this Extensible Connectivity (v1) Management Agent but every time I try to run it I always get stopped-extension-dll-no-implementation. When I check the EventViewer for more info it says "The management agent "My MA" failed on run profile "FULL_IMPORT" because a configured extension for this management agent does not contain a class implementing the required interface.".

    This is just not true since I have one public class inheriting from IMAExtensibleFileImport and IMAExtensibleFileExport.

    I even tried to run it in debug mode but the result is the same. It does not even get into the code. For some reason FIM cannot load that class.

    I'm using FIM 2010 R2.

    Any ideas what can I try? Every suggestion would be extremely useful. I'm completely lost here.

    Thanks a lot! Daniel.

    Thursday, March 30, 2017 3:45 PM

All replies

  • Post the first 50 lines of the ECMA code. The error rings a faint bell

    Ike Ugochuku

    Friday, March 31, 2017 1:31 AM
  • Hi Ike,

    thanks for your reply. Let me know if I can provide you with more information.

    Thanks a lot! Really appreciated!
    Daniel.

    using System.Text;
    using Microsoft.MetadirectoryServices;
    using System.Diagnostics;
    using System.IO;
    using CGroups.Utils;
    
    namespace CGroups {
    
        public class CGroupsMA :
            IMAExtensibleFileImport,
            IMAExtensibleFileExport {
    
            /// <summary>
            /// Configuration parameters
            /// </summary>
            static class ConfigParams {
                // If true, launch the debugger
                public const string Debug = "debug";
                // Logs directory. If not specifed, no logs are created.
                public const string LogDirectory = "logDirectory";
            }
    
            public void GenerateImportFile(
                string fileName,
                string connectTo,
                string user,
                string password,
                ConfigParameterCollection configParameters,
                bool fFullImport,
                TypeDescriptionCollection types,
                ref string customData) {
    
                // Launch the debugger if a "debug" parameter is present.
                if (configParameters.GetBool(ConfigParams.Debug, false)) {
                    Debugger.Launch();
                }
    
                // Initialize the logger
                using (new LogInitializer(configParameters.GetString(ConfigParams.LogDirectory, null))) {
                    Logger.Instance.Write("GenerateImportFile: START");
    
                // more logic here
                // ...
                // ...
                // ...
    
                }
    
            }
    
            #region IMAExtensibleFileExport Members (Not Implemented)
    
            // even if the agent is read only, the export interface must be
            // implemented anyway. It's ok to implement it throwing exceptions, as
            // the method will not actually be called.
    
            public void DeliverExportFile(string fileName, string connectTo, string user, string password, ConfigParameterCollection configParameters, TypeDescriptionCollection types) {
                throw new NotImplementedException();
            }
            #endregion
        }
    }


    Friday, March 31, 2017 7:35 AM
  • First you should be using ECMA2.0 interfaces as the ones you are using are deprecated. For the actual error though make sure that that you are having any lingering throw new NotImplementedException() lines of code after doing all the business logic hardwork.
    Saturday, April 1, 2017 6:13 AM
  • Hi,

    at the end, I decided to start over and create a new project from scratch. I copied and pasted all the code little by little from one project to the other. Now I cannot reproduce the issue anymore...

    To be honest I have no idea what caused it :/

    Thanks,

    Daniel.

    Friday, April 7, 2017 3:27 PM