BinaryFormatter Version incompatibility
BinaryFormatter Version incompatibility
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?
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?
BinaryFormatter Version incompatibility
this is the csc command that compiles the lib:
The input stream is not a valid binary format
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
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
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:
Thanks
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()
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24