View Designer error x64 config

Forum for reporting problems
Post Reply
Alan D
Posts: 0
Joined: Mon Sep 26, 2016 11:07 pm

View Designer error x64 config

Post by Alan D »

Hi
I am trying v5.0 64 bit. C# metrics sample gives me the error below when I try to open the main form in design view with x64 configuration active. AnyCPU builds OK, but gives a message that configuration is wrong when I run it
I would appreciate any clues
Thank you

Could not load file or assembly 'Interop.KernCADnet, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Instances of this error (1)

1. Show Call Stack

at AxKernCADnet.AxKernCADnet.AttachInterfaces()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
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 System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: View Designer error x64 config

Post by Prashant Kande »

Hi Alan
Any work with form designer should be done in AnyCPU or x68 configuration because Visual Studio is a 32bit app. To debug or run close the design view and switch the configuration to x64.
See also: http://www.dynoinsight.com/phpBB3/viewt ... f=3&t=2862
Regards

Post Reply