BinaryFormatter Version incompatibility

BinaryFormatter Version incompatibility

Postby ravit » Mon 15 Jan 2007 14:35

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?
ravit
 
Posts: 7
Joined: Mon 15 Jan 2007 14:22

Postby Alexey » Mon 15 Jan 2007 15:49

Could you provide us with your build file?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

BinaryFormatter Version incompatibility

Postby ravit » Mon 15 Jan 2007 16:20

this is the csc command that compiles the lib:
unsafe="true" checked="false" >









ravit
 
Posts: 7
Joined: Mon 15 Jan 2007 14:22

Postby Alexey » Mon 15 Jan 2007 16:57

Please send me (alexeyi at crlab.com) your project to reproduce the problem.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

The input stream is not a valid binary format

Postby ravit » Thu 18 Jan 2007 12:55

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
ravit
 
Posts: 7
Joined: Mon 15 Jan 2007 14:22

Postby Alexey » Thu 18 Jan 2007 13:52

Can you send me your project so that I could try to compile it with NAnt?
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Postby phoebe007 » Mon 11 Feb 2008 02:51

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
phoebe007
 
Posts: 11
Joined: Mon 11 Feb 2008 02:35

Postby Alexey.mdr » Mon 11 Feb 2008 14:38

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.
Alexey.mdr
 
Posts: 729
Joined: Thu 13 Dec 2007 10:24


Return to dotConnect for Oracle