I am having trouble compiling my CSharp Mono application.
My Mono Version is 2.10.2
This is the error I am receiving
Missing method .ctor in assembly /home/tmc/AcctTerm/System.dll, type System.Runtime.CompilerServices.ReferenceAssemblyAttribute Can't find custom attr constructor image: /home/tmc/AcctTerm/System.dll mtoken: 0x0a000054
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ReferenceAssemblyAttribute' from assembly 'System'. at conAccountTerminator.cjcAccountTerminator..ctor () [0x00000] in :0 at conAccountTerminator.MainClass.Main (System.String[] args) [0x00000] in :0
Any ideas?
edit: Adding Code;
using System;
using System.Net;
using System.Collections;
using System.Web;
using System.Text;
using System.IO;
using MySql;
using MySql.Data;
using MySql.Data.MySqlClient;
using System.Security;
using System.Security.Authentication;
using System.Net.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Data;
using System.Xml;
namespace conAccountTerminator
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            cjcAccountTerminator cjcAccountTerm = new cjcAccountTerminator();
            switch (args[0])
            {
                case "update":
                    cjcAccountTerm.LoginToMyBilling();
                    break;
                case "notepad":
                    cjcAccountTerm.UpdateCustomerData(args[1], args[2]);
                    break;
                case "terminate":
                    cjcAccountTerm.TerminateAccount(args[1]);
                    break;
            }
        }        
    }
}
                ReferenceAssemblyAttribute is a recent attribute, first seen in FX 4.0. 
Please ensure you're using Mono 'dmcs compiler (or mcs with -sdk=4) to ensure you're linking with a version of mscorlib.dll (4.0) that has the attribute present.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With