Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic XML Serialisation (Read 1493 times)
ilogixx
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 23rd, 2007
XML Serialisation
Oct 23rd, 2007 at 7:27am
Print Post  
We are using the evaluation of the planner.net. As we transfer schedules to other maschines and into databases we need the XML serialisation feature of the planner.net.
The serialisation works fine as long as we have no appointments with contacts or ressources. Before adding the serialisation works, after adding i.g. a contact to a schedule item, the serialisation to XML fails.
The error code is:
System.ArgumentNullException wurde nicht behandelt.
Message="Der Wert darf nicht NULL sein.
Parametername: value"
ParamName="value"
Source="mscorlib"
StackTrace:
bei System.Collections.CollectionBase.OnValidate(Object value)
bei System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
bei MindFusion.Scheduling.ResourceCollection.Add(Resource resource)
bei MindFusion.Scheduling.SerializationContext.xdfa5dc87f37674e5(StringCollection x0a6f7002484e4f46)
bei MindFusion.Scheduling.Appointment.LoadFrom(XmlReader reader, SerializationContext context)
bei MindFusion.Scheduling.Schedule.LoadFrom(XmlReader reader)
bei MindFusion.Scheduling.Schedule.LoadFromString(String content, ContentType contentType)
bei XMLTest.Form1.Button1_Click(Object sender, EventArgs e) in D:\MCCTest\XMLTest\XMLTest\Form1.vb:Zeile 19.
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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNat
iveMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
bei System.Windows.Forms.Application.Run(ApplicationContext context)
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicat
ionModel()
bei Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String
[] commandLine)
bei XMLTest.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:Zeile 81.
bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()

Has someone an idea why this happens?

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: XML Serialisation
Reply #1 - Oct 24th, 2007 at 4:56am
Print Post  
You also have to add the contacts associated with the items to the Schedule.Contacts collection before you serialize the schedule. We will make this automatic in the next release, but as of yet, you have to do it manually.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint