Page 1 of 1
BinaryFormatter Version incompatibility
Posted: Mon 15 Jan 2007 14:35
by ravit
I'm using a trial version, I added the license to my project as an embedded resource, in addition i added a file lisenses.config with
the name of the exe which uses the project that uses OraDirect .NET
when I compile the licenses.licx with visual studio .net 2003 it works fine
when I compile it with NANT (
http://nant.sourceforge.net/)
and add the license.licx as an embedded resource to my script:
i get the following exception in runtime (the build succeeds):
"BinaryFormatter Version incompatibility. Expected Version 1.0. Received Version 1818452338.1917791845."
any ideas?
Posted: Mon 15 Jan 2007 15:49
by Alexey
Could you provide us with your build file?
BinaryFormatter Version incompatibility
Posted: Mon 15 Jan 2007 16:20
by ravit
this is the csc command that compiles the lib:
Posted: Mon 15 Jan 2007 16:57
by Alexey
Please send me (alexeyi at crlab.com) your project to reproduce the problem.
The input stream is not a valid binary format
Posted: Thu 18 Jan 2007 12:55
by ravit
I get different error now:
now when i compile my project with license.licx as embedded resource with NANt
the compilation pass but it doesn't create oa.dll.licenses as it was created
when i compiled with visual studio,
and in runtime when tring to open connection i get the following exception:
[System.Runtime.Serialization.SerializationException] {"The input stream is not a valid binary format. The starting contents (in bytes) are: 43-6F-72-65-4C-61-62-2E-4F-72-61-63-6C-65-2E-4F-72 ..."}
can you help,
Thanks,
Ravit
Posted: Thu 18 Jan 2007 13:52
by Alexey
Can you send me your project so that I could try to compile it with NAnt?
Posted: Mon 11 Feb 2008 02:51
by phoebe007
I'm using a trial version of your software and am experiencing the same issue when building with NAnt scripts. The application works fine when building with visual studio.
Did you manage to solve this problem?
Is is possibly some kind of VS add-in that I'm missing? Or a custom build task?
My error message and stack trace:
Code: Select all
System.Runtime.Serialization.SerializationException: The input stream is not a valid binary format. The starting contents (in bytes) are: 43-6F-72-65-4C-61-62-2E-50-6F-73-74-67-72-65-53-71 ...
at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord()
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at System.ComponentModel.Design.DesigntimeLicenseContextSerializer.Deserialize(Stream o, String cryptoKey, RuntimeLicenseContext context)
at System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey(Type type, Assembly resourceAssembly)
at CoreLab.Common.p.a(LicenseContext A_0, Type A_1, String& A_2, Assembly& A_3)
at CoreLab.Common.p.a(LicenseContext A_0, Type A_1, String& A_2, Boolean& A_3, String& A_4, String& A_5)
at CoreLab.Common.p.a(LicenseContext A_0, Type A_1, Boolean A_2)
at CoreLab.Common.p.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3)
at CoreLab.PostgreSql.PgSqlConnection.Open()
Thanks
Posted: Mon 11 Feb 2008 14:38
by Alexey.mdr
Could you please post the version of Nant that you use?
Also send me your project (or create a new one) to reproduce the problem.