Designer Problems

0
0

I changed the Layout of one of our Custom Controls (an Editor for one of our Business Objects) and now got the following Errors. The VS-Designer hasn’t told about any Problems while I was editing. After restarting VS and opening the Control again the Errors occured.

Changing the Layout was very time-consuming and I’m not able to resolve this.

 

Instanzen dieses Fehlers (3)
1.
bei System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
bei System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
bei System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
bei System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
bei Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
bei System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
bei System.Windows.Forms.Control.PerformLayout()
bei Wisej.Base.ControlBase.PerformLayout()
2.
bei System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
bei System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
bei System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
bei System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
bei Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
bei System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
bei System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
bei System.Windows.Forms.Control.OnResize(EventArgs e)
bei System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
bei Wisej.Base.ControlBase.OnSizeChanged(EventArgs e)
bei System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
bei System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
bei System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei Wisej.Web.Panel.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei Wisej.Web.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
bei System.Windows.Forms.Layout.TableLayout.SetElementBounds(ContainerInfo containerInfo, RectangleF displayRectF)
bei System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
bei System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
bei System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
bei Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
bei System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
bei System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
bei System.Windows.Forms.Control.OnResize(EventArgs e)
bei System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
bei Wisej.Base.ControlBase.OnSizeChanged(EventArgs e)
bei System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
bei System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
bei System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei Wisej.Web.Panel.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei Wisej.Web.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
bei System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
bei System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)
bei System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)
bei System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
bei System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
bei System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
bei System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
bei Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
bei System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
bei System.Windows.Forms.Control.PerformLayout()
bei System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
bei Wisej.Base.ControlBase.ResumeLayout(Boolean performLayout)
bei Wisej.Base.ControlBase.ResumeLayout()
bei Wisej.Web.TabControl.ControlCollection.Add(Control control)
bei Wisej.Web.Control.ControlCollection.Add(Control child)
bei System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)
3.
bei System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
bei System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
bei System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
bei System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
bei System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
bei Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
bei System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
bei System.Windows.Forms.Control.PerformLayout()
bei System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
bei System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
bei System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

 

Best regards

Corvin

  • You must to post comments
0
0

Hello Luca,

sry for the german Version of the Exceptions, below you find the english version (Error 1).

Today I was able to solve it. I deleted some Controls and added them again. Tried the same yesterday without any Effects ?!

 

A snippet from the Document Outline

  • TabPage
    • TableLayoutPanel
      • TableLayoutPanel
        • DateTimePicker
        • DateTimePicker

 

I deleted the last 3 Controls (TableLayoutPanel holding two DateTimePickers) and got Error 2 (haven’t got it yesterday … ):

Then restarted Visual Studio, rebuild hte Project and now its fine.

 

Is it possible that this is dependant on the Order I added/deleted the Controls?

Have saved the Version where Error 1 threw, if you want to take a look.

Both Errors occured only when opening the Designer, build/rebuild the Project was no Problem.

 

Best regards

Corvin

 

Error 2

To prevent possible data loss before loading the designer, the following errors must be resolved:

1 Error

Why am I seeing this page?

The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

Instances of this error (1)

1. Hide Call Stack

at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Boolean allowPrivate, Assembly& assembly, String description)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, String description)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly& assembly)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchEntries(AssemblyName assemblyName, String typeName, Boolean ignoreCase, Assembly& assembly, ReferenceType refType)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.AggregateTypeResolutionService.GetType(String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetRuntimeType(String typeName)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.GetType(String typeName)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetType(String typeName)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)

Help with this error

Could not find an associated help topic for this error. Check Windows Forms Design-Time error list

Forum posts about this error

Search the MSDN Forums for posts related to this error

 

Error 1

To prevent possible data loss before loading the designer, the following errors must be resolved:

1 Error

Ignore and Continue
Why am I seeing this page?

Index was outside the bounds of the array.

Instances of this error (3)

1. Hide Call Stack

at System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
at System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at Wisej.Base.ControlBase.PerformLayout()

2. Hide Call Stack

at System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
at System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at Wisej.Base.ControlBase.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at Wisej.Web.Panel.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at Wisej.Web.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.TableLayout.SetElementBounds(ContainerInfo containerInfo, RectangleF displayRectF)
at System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
at System.Windows.Forms.Control.OnResize(EventArgs e)
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
at Wisej.Base.ControlBase.OnSizeChanged(EventArgs e)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at Wisej.Web.Panel.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at Wisej.Web.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)
at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
at Wisej.Base.ControlBase.ResumeLayout(Boolean performLayout)
at Wisej.Base.ControlBase.ResumeLayout()
at Wisej.Web.TabControl.ControlCollection.Add(Control control)
at Wisej.Web.Control.ControlCollection.Add(Control child)
at System.Windows.Forms.Design.ControlDesigner.DesignerControlCollection.Add(Control c)

3. Hide Call Stack

at System.Windows.Forms.Layout.TableLayout.ApplyStyles(ContainerInfo containerInfo, Size proposedConstraints, Boolean measureOnly)
at System.Windows.Forms.Layout.TableLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at Wisej.Web.Layout.TableLayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
at Wisej.Base.ControlBase.OnLayout(LayoutEventArgs e)
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
at System.Windows.Forms.Control.PerformLayout()
at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

Help with this error

MSDN Help

Forum posts about this error

Search the MSDN Forums for posts related to this error

  • You must to post comments
0
0

I need more info. Will contact you directly.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.