C# Windows Form View Designer Showing error

Posted by: ajmesh3 on 12 May 2023, 6:20 pm EST

  • Posted 12 May 2023, 6:20 pm EST

    Recently I have upgraded my application from .net 4.8 to .net 6.

    In many forms (not all) in which C1.Win.TrueDBGrid.C1TrueDBGrid control is used showing given below error.

    Any help please?

    Type ‘System.Drawing.Printing.PageSettings’ in Assembly ‘System.Drawing.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ is not marked as serializable.

    Instances of this error (1)

    1. Hide Call Stack

    at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(Type type)

    at System.Runtime.Serialization.FormatterServices.<>c.b__5_0(MemberHolder mh)

    at System.Collections.Concurrent.ConcurrentDictionary

    2.GetOrAdd(TKey key, Func
    2 valueFactory)

    at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)

    at System.Runtime.Serialization.Formatters.Binary.ReadObjectInfo.InitMemberInfo()

    at System.Runtime.Serialization.Formatters.Binary.ReadObjectInfo.InitReadConstructor(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context)

    at System.Runtime.Serialization.Formatters.Binary.ObjectMap…ctor(String objectName, String memberNames, BinaryTypeEnum binaryTypeEnumA, Object typeInformationA, Int32 memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)

    at System.Runtime.Serialization.Formatters.Binary.BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)

    at System.Runtime.Serialization.Formatters.Binary.BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)

    at System.Runtime.Serialization.Formatters.Binary.BinaryParser.Run()

    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(BinaryParser serParser)

    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)

    at Microsoft.DotNet.DesignTools.Utilities.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver)

    at Microsoft.DotNet.DesignTools.Utilities.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader, Boolean isMetaData)

    at Microsoft.DotNet.DesignTools.Utilities.Resources.ResXResourceReader.ParseXml(XmlTextReader reader) sampleForm.zip

  • Posted 14 May 2023, 4:20 pm EST

    Hi Ajmesh,

    It seems like you have created a similar case on our support portal as well (Case ID: CAS-40386-F8Y7C4). We have replied to your query there and request you continue the thread there to avoid confusion.

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels