Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Moving an issue Programatically ..

api

When i Try to move an issue using the IssueService I get an excption (Root element is missing) (see below). I am using ServiceManager sm = new ServiceManager(credentials) IssueComponentEN[] comp = new IssueComponentEN[1] comp[0] = new IssueComponent(); comp[0].ComponentID = 1; sm.IssuesService.MoveIssue(1,1,comp,false);

Thanks ,

David

Full Exception :-

System.Xml.XmlException was unhandled Message="Root element is missing." Source="System.Xml" LineNumber=0 LinePosition=0 SourceUri="" StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(Stream inStream) at CounterSoft.Gemini.Commons.Rest.Serializer.ConvertToObject[T](Stream stream) at CounterSoft.Gemini.WebServices.BaseService.GetObjectFromResponse[T](Stream stream) 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.MoveIssue(Int32 issueId, Int32 toProjectId, IssueComponentEN[] components, Boolean resetHistory) at MGM.Gemini.GeminiIssue.MoveToProject(Int32 ProjectID, Int32 ComponentID) in C:\Users\opsdn\Documents\Visual Studio 2008\Projects\GeminiInterface\GeminiInterface\Collections\IssueCollection.cs:line 184 at MGM.Gemini.Windows.MoveMenuItemComponent.OnClick(EventArgs e) in C:\Users\opsdn\Documents\Visual Studio 2008\Projects\GeminiWindows\GeminiWindows\Common Controls\GeminiView\GeminiViewContextMenu.cs:line 81 at System.Windows.Forms.MenuItem.MenuItemData.Execute() at System.Windows.Forms.Command.Invoke() at System.Windows.Forms.Command.DispatchID(Int32 id) at System.Windows.Forms.Control.WmCommand(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ListView.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at MGM.Gemini.Windows.Program.Main() in C:\Users\opsdn\Documents\Visual Studio 2008\Projects\GeminiWindows\GeminiWindows\Program.cs:line 18 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:

David.Nuttall
· 1
David.Nuttall
Replies (1)
helpful
0
not helpful

This is a bug with the proxy. The issue is moved but you get a failure because we don't return it.
http://gemini.countersoft.com/Default.aspx?p=2&i=4306


Mark Wing
· 9108
Mark Wing