null - "Value does not fall within the expected range" on C# for adding a bug on HPQC -


this function supposed add new defect on hpqc. gives "value not fall within expected range" when null in .additem(). know might problem?

public static void addbug() {             string qcurl = "link hpqc";             string qcdomain = "domain";             string qcproject = "project";             string qcloginname = "name";             string qcpassword = "pass";              tdconnection connection = new tdconnection();             connection.initconnectionex(qcurl);             connection.connectprojectex(qcdomain, qcproject, qcloginname, qcpassword);              bugfactory bugfactory = connection.bugfactory;             bug bug = bugfactory.additem(null);              bug.status = "new";             bug.project = "qcintegration";             bug.summary = "short description of bug";             bug.detectedby = "aaron evans";             bug.assignedto = "nobody";             bug.priority = "low";             bug.post(); } 


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -