export error

Mar 30, 2012 at 5:29 PM

hi

i have make update from 2.1.1 to latest version of MVC edition but what happen is the when i export and import it showing

startIndex cannot be larger than length of string.
Parameter name: startIndex
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex]
   System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10081644
   System.String.Substring(Int32 startIndex) +19
   N2.Web.Parts.PartsExtensions.LoadEmbeddedPart(ContentItem item, String keyPrefix) in x:\x\x\x\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Web\Parts\PartsExtensions.cs:24
   N2.Templates.Mvc.Models.Pages.LanguageRoot.get_Header() in x:\x\x\x\Asp.x\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Mvc\MvcTemplates\Models\Pages\LanguageRoot.cs:95
   Castle.Proxies.StartPageProxy.get_Header_callback() +9
   Castle.Proxies.Invocations.LanguageRoot_get_Header.InvokeMethodOnTarget() +39
   Castle.DynamicProxy.AbstractInvocation.Proceed() +69
   N2.Persistence.Proxying.DetailPropertyInterceptor.Intercept(IInvocation invocation) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Persistence\Proxying\DetailPropertyInterceptor.cs:91
   Castle.DynamicProxy.AbstractInvocation.Proceed() +214
   Castle.Proxies.StartPageProxy.get_Header() +126

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +808
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
   System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +36
   N2.Utility.GetProperty(Object instance, String propertyName) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Utility.cs:208
   N2.Details.EditableItemAttribute.GetChild(ContentItem item) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Details\EditableItemAttribute.cs:139
   N2.Details.EditableItemAttribute.OnChildEditorInit(Object sender, EventArgs e) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Details\EditableItemAttribute.cs:134
   System.Web.UI.Control.OnInit(EventArgs e) +132
   System.Web.UI.Control.InitRecursive(Control namingContainer) +143
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +271
   N2.Details.EditableItemAttribute.AddEditor(Control panel) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Details\EditableItemAttribute.cs:127
   N2.Edit.EditManager.AddEditorsRecursive(ContentItem item, Control containerControl, HierarchyNode`1 node, IPrincipal user, IDictionary`2 addedEditors) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Edit\EditManager.cs:123
   N2.Edit.EditManager.AddEditorsRecursive(ContentItem item, Control containerControl, HierarchyNode`1 node, IPrincipal user, IDictionary`2 addedEditors) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Edit\EditManager.cs:132
   N2.Edit.EditManager.AddEditorsRecursive(ContentItem item, Control containerControl, HierarchyNode`1 node, IPrincipal user, IDictionary`2 addedEditors) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Edit\EditManager.cs:132
   N2.Edit.EditManager.AddEditors(ItemDefinition definition, ContentItem item, Control container, IPrincipal user, Type containerTypeFilter, IEnumerable`1 editableNameFilter) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Edit\EditManager.cs:114
   N2.Edit.EditableAdapter.AddDefinedEditors(ItemDefinition definition, ContentItem item, Control container, IPrincipal user, Type containerTypeFilter, IEnumerable`1 editableNameFilter) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Edit\EditableAdapter.cs:68
   N2.Web.UI.WebControls.ItemEditor.CreateChildControls() in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Web\UI\WebControls\ItemEditor.cs:192
   System.Web.UI.Control.EnsureChildControls() +146
   N2.Web.UI.WebControls.ItemEditor.set_CurrentItem(ContentItem value) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Framework\N2\Web\UI\WebControls\ItemEditor.cs:128
   N2.Management.Content.EditRecursive.OnInit(EventArgs e) in d:\Software\Website\CMS\Asp.net\N2CMS\Github N2CMS Fix\n2cms-n2cms-2.2.1-305-g3859acb\n2cms-n2cms-3859acb\src\Mvc\MvcTemplates\N2\Content\EditRecursive.aspx.cs:30
   System.Web.UI.Control.InitRecursive(Control namingContainer) +143
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477



Version Information: Microsoft .NET Framework Version:2.0.50727.4963; ASP.NET Version:2.0.50727.4955