Byte array for GUID must be exactly 16 bytes long

Byte array for GUID must be exactly 16 bytes long

Postby frankdent » Mon 05 Jul 2010 08:32

Hello,

I have installed Devart dotConnect for Oracle Trial, version 5.70.140.0 on Windows XP with Visual Studio 2010.

My model has a table 'Text' with following fields:

- IdText Guid (RAW(16))
- Kennung String (VARCHAR2)
- Typ String (VARCHAR2)
- Inhalt String (CLOB)

When read all text rows by the generated code:

public IQueryable GetTexts()
{
return this.ObjectContext.Texts;
}

I'm getting the System.ArgumentException "Byte array for GUID must be exactly 16 bytes long".

What's wrong?

Frank
frankdent
 
Posts: 2
Joined: Mon 05 Jul 2010 08:11

Postby AndreyR » Tue 06 Jul 2010 16:40

I have tried to reproduce this situation with the help of table definition provided by you.
A new item was successfully queried from database.
Please check that the values stored in the IdText column contain the correct Guid byte representations.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby frankdent » Mon 12 Jul 2010 13:10

Sorry,

there was a wrong value in the id-field.

Frank
frankdent
 
Posts: 2
Joined: Mon 05 Jul 2010 08:11

Postby AndreyR » Mon 12 Jul 2010 13:42

Thank you for the information. Glad to hear the issue is resolved.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for Oracle