Gemini 5 Item Update - MethodNotAllowed
Using the example code provided with the Gemini 5 API, I seem to be unable to update an existing issue. I'm using the Manager account, I'm able to create the issue using the sample app but when updating the same issue I get a 405 (MethodNotAllowed).
I've explicitely allowed every HTTP verb at the IIS level, and I double checked Gemini's web.config to make sure they're all explicitely allowed there as well.
Here's the code (downloaded from here) for the sample project that I'm using.
private void btnUpdateItem_Click(object sender, EventArgs e)
{
IssueDto data = login.Item.Get((int)numID.Value);
if (data.Entity.Id > 0)
{
data.Entity.Title = txtTitle.Text;
data.Entity.Description = txtDesc.Text;
data.Entity.ReportedBy = Convert.ToInt32(numUserID.Value);
data.Entity.ProjectId = Convert.ToInt32(numProjectID.Value);
data.Entity.Id = (int)numID.Value;
login.Item.Update(data.Entity);
BindGrid();
}
}
Has anyone had any experience with similar issues?
Thanks!
Jon Waters
· 1 |
|
Tuesday, January 8, 2013, 4:20:34 PM |