Exception thrown by the target of an invocation - CreateIssue
Hello. I am upgrading our Gemini installation from version 2.0 to 3.5.4 and am running into a problem with the web services API.
We
have a publicly facing web form written in .NET that uses the web
services API to allow people to create issues for a small number of
projects.
I upgraded the web form to use the new web services
API, and whenever I try to create an issue I get the
following exception:
Exception has been thrown by the target of an invocation.
at
CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse
response) at
CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String
url, Object obj, RequestType requestType) at
CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url,
Object o, RequestType r) at
CounterSoft.Gemini.WebServices.IssuesService.CreateIssue(IssueEN issue)
at geminirequestsIDART.btnSubmitClick(Object sender, EventArgs e) in
c:\Users\gossep\Documents\Visual Studio
2008\WebSites***\geminirequests\IDART.aspx.cs:line 274
In
an attempt to isolate the problem I created a test form that would
create a simple web service request and submit it. I used the code from
the btnCreateIssue_Click event handler in FormIssue.cs in the
CounterSoft_Gemini_API_Samples_v3_5_4.zip download as a reference in
building the test form.
The code I am using to create the request in the test form is below:
...
using CounterSoft.Gemini.Commons;
using CounterSoft.Gemini.WebServices;
...
protected void btnSubmit_Click(object sender, EventArgs e)
{
IssuesService issueService = new
IssuesService("http://gemini..ca/gemini", "IssueCreator",
"IssueCreator", "tsxzja68i8");
IssueEN data = new IssueEN();
IssueComponentEN[] iceComps = new IssueComponentEN[1];
iceComps[0] = new IssueComponentEN();
iceComps[0].ComponentID = 84;
data.Components = iceComps;
data.FixedInVersion = 0;
data.IssueLongDesc = "Long description";
data.IssuePriority = 1;
data.IssueResolution = 1;
data.IssueStatus = 1;
data.IssueSummary = "Issue Summary";
data.IssueType = 1;
data.IssueSeverity = 1;
data.ReportedBy = 1;
data.RiskLevel = 1;
data.Visibility = 1;
data.VisibilityMemberType = GeminiConstant.SecurityMemberType.GlobalGroup;
data.ProjectID = 10;
try
{
data.IssueID = issueService.CreateIssue(data).IssueID;
}
catch (Exception ex)
{
Response.Write(ex.Message + "<br />" +
ex.StackTrace + "<br />" +
ex.InnerException);
}
}
This code, which was taken from the API samples, results in the same exception as the originally upgraded form.
Exception has been thrown by the target of an invocation.
at
CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse
response) at
CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String
url, Object obj, RequestType requestType) at
CounterSoft.Gemini.WebServices.BaseService.GetResponse[T](String url,
Object o, RequestType r) at
CounterSoft.Gemini.WebServices.IssuesService.CreateIssue(IssueEN issue)
at geminirequests_WSTest.btnSubmit_Click(Object sender, EventArgs e) in
c:\Users\gossep\Documents\Visual Studio
2008\WebSites\***\geminirequests\WSTest.aspx.cs:line 51
The InnerException is null in both cases. Can anyone provide any insight into what the problem could be?
Thanks,
Pablo
pablo
· 1 |
|
Wednesday, September 30, 2009, 7:14:03 PM |