Exception has been thrown by the target of an invocation.
The Exeption:
CounterSoft.Gemini.Commons.Rest.GeminiRestException: Exception has been thrown by the target of an invocation. Project Id does not match saved data Id value: 0. bei CounterSoft.Gemini.WebServices.BaseService.ThrowResponseException(WebResponse response) bei CounterSoft.Gemini.WebServices.BaseService.ProcessResponse[T](String url, Object obj, RequestType requestType) bei CounterSoft.Gemini.WebServices.IssuesService.CreateComment(Int32 issueId, IssueCommentEN comment) bei geminiaddin.Form1.createComment() in D:\dev\tools\tools\outlook\geminiaddin\src\geminiaddin\Form1.cs:Zeile 138. bei geminiaddin.Form1.button1_Click(Object sender, EventArgs e) in D:\dev\tools\tools\outlook\geminiaddin\src\geminiaddin\Form1.cs:Zeile 280. bei System.Windows.Forms.Control.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnClick(EventArgs e) bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ButtonBase.WndProc(Message& m) bei System.Windows.Forms.Button.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
with this code:
IssueCommentEN data = new IssueCommentEN();
if (checkedListBoxControl1.CheckedItemsCount > 0)
{
FileEN f = new FileEN();
TempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
if (!Directory.Exists(TempPath)) Directory.CreateDirectory(TempPath);
Attachment a =mailItem.Attachments.Item(checkedListBoxControl1.GetItemValue(checkedListBoxControl1.CheckedIndices[0]));
a.SaveAsFile(Path.Combine(TempPath, a.FileName));
f.FileName = a.FileName;
f.FileData = StreamFile(Path.Combine(TempPath, a.FileName));
data.Attachment = f;
}
data.IssueID = (int)seTicketID.Value;
data.Comment = richEditControl1.HtmlText;
data.Visibility = (int)comboBox4.SelectedValue;
data.VisibilityMemberType = GeminiConstant.SecurityMemberType.GlobalGroup;
m_smProxyManager.IssuesService.CreateComment((int)seTicketID.Value, data);
cari
· 1 |
|
Thursday, June 7, 2012, 5:43:38 PM |