HI
I receive this exception from my asp.net web application, from where I intend to display defects list and advanced graphs later on. I am using OTAClient.dll version 11 with HP ALM - QC Edition V 11.0
Kindly let me know where am I going wrong.
"The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
My Source code of the Page is as follows :
private string Connect()
{
string status;
status = "Initialising";
try
{
qcConnection.InitConnectionEx("serverURL");
qcConnection.ConnectProjectEx("DomainName", "projectname", "Userid", "Password");
if (qcConnection.ProjectConnected)
{
status = "Connected";
}
return status;
}
catch (Exception ex)
{
return ex.Message.ToString();
}
public void getDefects(string defectType)
{
try
{
if (qcConnection.ProjectConnected)
{
TDAPIOLELib.BugFactory bg = (BugFactory)qcConnection.BugFactory;
TDFilter tdfilter = (TDFilter)(bg.Filter);
tdfilter["BG_Status"] = "Closed";
string filter = tdfilter._Text;
TDAPIOLELib.List buglist =(List)bg.NewList(filter);
IList<Bug> bugList = new List<Bug>();
string getId = string.Empty;
foreach (IBug qcBug in buglist)
{
Bug bug = new Bug(qcBug);
bugList.Add(bug);
if (bug.AssignedTo == "")
{
getId += Convert.ToString(bug.ID) + ',';
}
}
string get_All = getId;
Console.WriteLine(getId);
ListBox1.Items.Add("1");
}
else
{
ListBox1.Items.Add("NO");
}
}
catch (Exception e)
{
ListBox1.Items.Add(e.GetBaseException().ToString());
}
}
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Connect();
getDefects("test");
}