Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Problems with new Extension



  • I'm trying to create a new action that will be called from a build step, and while I can add it to the action group just fine, when I run I get an error that it could no load the type, yet it does not seem any different to any existing actions that I have.

    To illustrate this I have created a bare bones action from scratch (code below), deployed it to buildmaster, added the action to an action group in my application and created a new build.

    This is the output I get:

    ERROR: Could not load type 'NZCustomsServiceExtension.Actions.MyAction' from assembly 'NZCustomsServiceExtension, Version=0.114.1.0, Culture=neutral, PublicKeyToken=null'.

    Parameter name: typeName

    Source Code

    using Inedo.BuildMaster;
    using Inedo.BuildMaster.Extensibility.Actions;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace NZCustomsServiceExtension.Actions
    {
        [ActionProperties(
            "My Action", "Does some stuff.")]
        [Tag("NZCustomsService")]
        public class MyAction : ActionBase
        {
            protected override void Execute()
            {
                this.LogInformation("My action got here");
            }
        }
    }
    

    What am I missing?

    Product: BuildMaster
    Version: 4.5.6



  • That's strange. Only thing I can think of is that maybe the service isn't loading the latest version of the extension but the web app is. That's the only way I can think of for the UI/editors to be able to access the action but not the execution engine. Have you tried explicitly restarting the BuildMaster service?



  • Restarting the service sorted it thanks.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation