QC API for SA not working as expected
I get the following error when I try to execise the com calls in VS 2008 for sa.
System.Runtime.InteropServices.COMException was unhandled
Message="Exception from HRESULT: 0x800403E8"
here is my code: using QC 9.2
Dim ServerName = "http://172.22.123.28:8080/sabin"
Dim UserName = "admin"
Dim Password = "********"
'Project & domain Infromation
Dim Domain = "DEFAULT"
Dim Project = "Sandbox"
Dim GroupName = "Tester"
' User Creation Variables
Dim NewUserName = "fredotest1"
Dim NewFullName = "Fredo User Test1"
Dim NewEmail = "Alfredo.Rivera@email.com"
Dim NewPhone = "301-555-1212"
Dim NewDesc = "Automated Created User"
Dim NewPassword = "password"
Dim response As String
Dim sa As New SACLIENTLib.SAapi
sa.Login(ServerName, UserName, Password)
response = sa.GetConnectionsCount("DEFAULT", "SandBox")
RichTextBox1.Text = response
' Dim response
'sa.CreateUser(NewUserName, NewFullName, NewEmail, NewPhone, NewDesc, NewPassword)
'sa.AddUsersToProject(Domain, Project, NewUserName)
'sa.AddUsersToGroup(Domain, Project, GroupName, NewUserName)
sa = Nothing
if i uncomment the create user it works but the Get Connections or connection count does not work. Also there are other functions not working.
Re: QC API for SA not working as expected
Was able to get this working . Note that if u upload new license keys you must restart the QC Server or your going to get weird errors and issues.