GetObjectList error in C# code RRS feed

  • Question

  • Hii evveryone,

    I am new to c# Visual Studio.I am working on creating custom activity for uipath studio which needs coding in C#.I am creating an activity for Api calling where mey input would be subject and output would be response only .

    Code is as follows:


    using System;
    using System.Activities;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ComponentModel;
    using Redmine.Net.Api;
    using Redmine.Net.Api.Types;
    using System.Collections.Specialized;

    namespace Redmine_Main
        public class Class1 : CodeActivity //message box creation

            public InArgument<double> Subject { get; set; }
            public OutArgument<double> Result { get; set; }
            protected override void Execute(CodeActivityContext context)
                var subject = Subject.Get(context);
                string host = "http://localhost/redmine/issues.json";
                string apiKey = "90832fbbd2c709cacd6bf2a4bbbed225c232eba9";                                                                                          var manager = new RedmineManager(host, apiKey);
                var parameters = new NameValueCollection { { "status_id", "*" } };
                foreach (var issue in manager.GetObjectList<Issue>(parameters))
                    var result = ("#{0}: {1}", issue.Id, issue.Subject);

                    Result.Set(context, result);
                var newIssue = new Issue { Subject = subject, Project = new IdentifiableName { Id = 1 } };


    Response is a follows:

    Error CS1061 'RedmineManager' does not contain a definition for 'GetObjectList' and no accessible extension method 'GetObjectList' accepting a first argument of type 'RedmineManager' could be found (are you missing a using directive or an assembly reference?) Redmine Main C:\Users\GSS-13\source\repos\Redmine Main\Class1.cs 36 Active

    Error CS0029 Cannot implicitly convert type 'double' to 'string' Redmine Main C:\Users\GSS-13\source\repos\Redmine Main\Class1.cs 46 Active

    Hoping for the response

    Thanks and Regards,


    Monday, August 26, 2019 7:17 AM


  • Hi supriya95,

    Thank you for posting here.

    According to your question, I note that Redmine .NET API library is a third-party product,unfortunately we don't provide support for third-party products in the forums, so questions specifically related to using the third party API, and you'll need to post in their forums.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 26, 2019 8:52 AM