Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

5.1 Beta 2 and RC - Issues with designer and custom controls

$
0
0

Hi,

I have experienced the following recently with the above SD5.1 versions, with 4.x there was no problem; I observed/checked especially together with AForge packages version 2.2.5.0 (some others only shortly tested).

- After opening the original SD4.x solution and editing the code, at some point I got a "Designer failed to load" message; it related to assemblies which were reported not to be found, but the files were still there (nothing actually changed). The assembly still built fine and ran as expected. It did not help to remove and re-install the packages. Only manually commenting out the related custom controls in the ...Designer.cs file will "fix" it (and now I can not get back to the original state).

- If adding a new reference the controls inside will only show up in the "Tools" tab (under "Custom Components") after re-building the solution/the project. Similar holds true if a package/reference is removed, custom controls will not be updated before re-build.Is this really intended?

- In "Configure Sidebar" dialog window the "Custom Components" category does not show up?

- I cannot add custom components to the form anymore, neither drag&drop nor clicking and drawing the size rectangle works. The tool selection just resets back to the "Pointer" tool.

Any ideas?

Regards

Michael

 

Below is the complete error message - seems the dependency DLLs for AForge.Controls are being searched in the wrong folder(s):


Failed to load designer. Check the source code for syntax errors and check if all references are available.

ICSharpCode.FormsDesigner.FormsDesignerLoadException: System.IO.FileNotFoundException: Could not load file or assembly 'AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
File name: 'AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b'
   at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

=== Pre-bind state information ===
LOG: DisplayName = AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b
 (Fully-specified)
LOG: Appbase = file:///F:/Programming/SharpDevelop/5.1/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : AForge.Controls, Version=2.2.5.0, Culture=neutral, PublicKeyToken=a8ac264d1dc6b9d9.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: F:\Programming\SharpDevelop\5.1\bin\SharpDevelop.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: AForge.Imaging, Version=2.2.5.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Imaging/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Imaging/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Imaging.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Imaging/AForge.Imaging.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Imaging.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Imaging/AForge.Imaging.EXE.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Imaging/AForge.Imaging.DLL.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Imaging.EXE.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Imaging/AForge.Imaging.EXE.


System.IO.FileNotFoundException: Could not load file or assembly 'AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401' or one of its dependencies. Das System kann die angegebene Datei nicht finden.
File name: 'AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401'
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
   at System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy()
   at System.Reflection.RuntimePropertyInfo.GetIndexParameters()
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetProperties(Type type)
   at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetProperties()
   at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
   at System.ComponentModel.TypeDescriptor.GetProperties(Type componentType)
   at System.Windows.Forms.Design.ControlDesigner.Initialize(IComponent component)
   at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
   at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
   at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
   at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
   at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[ parameters, String name, Boolean addToContainer)
   at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[ parameters, String name, Boolean addToContainer)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
   at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
   at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
   at ICSharpCode.FormsDesigner.Services.ProjectResourcesComponentCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
   at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
   at ICSharpCode.FormsDesigner.Services.ProjectResourcesComponentCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
   at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

=== Pre-bind state information ===
LOG: DisplayName = AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401
 (Fully-specified)
LOG: Appbase = file:///F:/Programming/SharpDevelop/5.1/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : AForge.Controls, Version=2.2.5.0, Culture=neutral, PublicKeyToken=a8ac264d1dc6b9d9.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: F:\Programming\SharpDevelop\5.1\bin\SharpDevelop.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: AForge.Video, Version=2.2.5.0, Culture=neutral, PublicKeyToken=cbfb6e07d173c401
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Video.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Video/AForge.Video.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Video.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Video/AForge.Video.DLL.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Video.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/AForge.Video/AForge.Video.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Video.EXE.
LOG: Attempting download of new URL file:///F:/Programming/SharpDevelop/5.1/bin/Tools/NUnit/AForge.Video/AForge.Video.EXE.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Video.DLL.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Video/AForge.Video.DLL.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Video.EXE.
LOG: Attempting download of new URL file:///H:/Programming/SharpDevelop/AForgeTest/packages/AForge.Controls.2.2.5/lib/AForge.Video/AForge.Video.EXE.


System.ComponentModel.Design.Serialization.CodeDomSerializerException: The variable 'videoSourcePlayer1' is either undeclared or was never assigned.
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)


   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadDesigner()
   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadAndDisplayDesigner()
   at ICSharpCode.FormsDesigner.FormsDesignerViewContent.LoadInternal(OpenedFile file, Stream stream)
   at ICSharpCode.SharpDevelop.Workbench.AbstractViewContentHandlingLoadErrors.Load(OpenedFile file, Stream stream)


Viewing all articles
Browse latest Browse all 1764

Trending Articles