0

Closed

Service - ошибка при создании политики NetworkPlugin

description

System.InvalidOperationException was unhandled  Message="There was an error reflecting type 'Mimoza.NetworkPlugin.NetworkPluginData'."  Source="System.Xml"  StackTrace:       at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)       at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, RecursionLimiter limiter)       at System.Xml.Serialization.XmlReflectionImporter.ImportElement(TypeModel model, XmlRootAttribute root, String defaultNamespace, RecursionLimiter limiter)       at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)       at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)       at System.Xml.Serialization.XmlSerializer..ctor(Type type)       at Mimoza.NetworkPlugin.NetworkPluginData.Serialize() in C:\Mimoza\Plugins\System Settings\NetworkPlugin\NetworkPluginData.cs:line 66       at Mimoza.NetworkPlugin.ConfigPlugin.Serialize(Object userData) in C:\Mimoza\Plugins\System Settings\NetworkPlugin\ConfigPlugin.cs:line 71       at Mimoza.Apps.Console.Commands.PolicyWizard.OnFinish() in C:\Mimoza\Apps\Console\Commands\Policy Commands\Policy Wizard\PolicyWizard.cs:line 107       at Mimoza.GUI.BaseWizard.OK_Click(Object sender, EventArgs e) in C:\Mimoza\GUI\BaseWizard\BaseWizard.cs:line 172       at System.Windows.Forms.Control.OnClick(EventArgs e)       at System.Windows.Forms.Button.OnClick(EventArgs e)       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)       at System.Windows.Forms.Control.WndProc(Message& m)       at System.Windows.Forms.ButtonBase.WndProc(Message& m)       at System.Windows.Forms.Button.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.RunDialog(Form form)       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)       at System.Windows.Forms.Form.ShowDialog()       at Mimoza.GUI.BaseWizard.Start() in C:\Mimoza\GUI\BaseWizard\BaseWizard.cs:line 273       at Mimoza.Apps.Console.Commands.AddPolicyCommand.Execute() in C:\Mimoza\Apps\Console\Commands\Policy Commands\AddPolicyCommand.cs:line 39       at Mimoza.Apps.Console.View.BaseView.command_Click(Object sender, EventArgs e) in C:\Mimoza\Apps\Console\View\BaseView.cs:line 48       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)       at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)       at System.Windows.Forms.Control.WndProc(Message& m)       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)       at System.Windows.Forms.ToolStrip.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 Console.Program.Main() in C:\Mimoza\Apps\Console\Program.cs:line 24       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: System.InvalidOperationException       Message="Cannot serialize member 'Mimoza.NetworkPlugin.NetworkPluginData.GatewayAddress' of type 'System.Net.IPAddress', see inner exception for more details."       Source="System.Xml"       StackTrace:            at System.Xml.Serialization.StructModel.CheckSupportedMember(TypeDesc typeDesc, MemberInfo member, Type type)            at System.Xml.Serialization.StructModel.GetPropertyModel(PropertyInfo propertyInfo)            at System.Xml.Serialization.StructModel.GetFieldModel(MemberInfo memberInfo)            at System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers(StructMapping mapping, StructModel model, Boolean openModel, String typeName, RecursionLimiter limiter)            at System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping(StructModel model, String ns, Boolean openModel, XmlAttributes a, RecursionLimiter limiter)            at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeats, Boolean openModel, RecursionLimiter limiter)       InnerException: System.InvalidOperationException            Message="System.Net.IPAddress cannot be serialized because it does not have a parameterless constructor."            InnerException:
Closed Feb 16, 2013 at 5:29 PM by wood17
fixed

comments