Moving an issue Programatically ..
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 |
|
Monday, February 7, 2011, 1:20:55 PM |