system.Byte[] cannot convert to System.String

Please enter any bugs here. We will check this daily!

system.Byte[] cannot convert to System.String

Postby wdiechmann on Sun Jul 01, 2007 4:01 pm

Hi,

I've just recently downloaded [b]MyGeneration [/b]- and if this scripting error of mine is a sheer 'noob', please excuse me javascript:emoticon(':oops:')
Embarassed

When I select my connection (MySQL2) languages (->C#) and mapping (Connector.Net) and test connection everything is OK.

When I execute template (dOOdasMySQLBusiness Entity) and select table from connection - I get a scripting error like this:

[code]C:\\Program Files\\MyGeneration\\Templates\\dOOdasMySQL\\VbNet_MySQL_dOOdads_BusinessEntity.vbgen

Source: MyMeta

Error Number: -2147467262

Scripting Errors and Warnings:
[Error] MyMeta (155, 0) -2147467262: Et objekt af typen 'System.Byte[]' kan ikke konverteres til typen 'System.String'.
Stack Trace -[/code]

translated this error reads something like: An object of thy System.Byte[] cannot be converted to type System.String

I have not touched anything - added nothing to anything - as I'm totally green on mygeneration (as stated previously)

best regards,
Walther :oops:
wdiechmann
Lurker
 
Posts: 3
Joined: Sun Jul 01, 2007 3:47 pm

Re: system.Byte[] cannot convert to System.String

Postby wdiechmann on Mon Jul 02, 2007 5:48 am

I tried using ActiveRecord template instead - and I "bagged" a System Exception for doing that javascript:emoticon(':o')
Surprised

Exception Type: InvalidCastException
Source: DotNetScriptingEngine
Method: Void EngineExecuteCode( Zeus.IZeusCodeSegment, Zeus.IZeusContext)
Message:
System.Byte[] cannot be converted to System.String (approx translation from danish message)

- I use the 5.1.2 MySQL Connector.Net

/Walther

[quote="wdiechmann"]Hi,

I've just recently downloaded [b]MyGeneration [/b]- and if this scripting error of mine is a sheer 'noob', please excuse me javascript:emoticon(':oops:')
Embarassed

When I select my connection (MySQL2) languages (->C#) and mapping (Connector.Net) and test connection everything is OK.

When I execute template (dOOdasMySQLBusiness Entity) and select table from connection - I get a scripting error like this:

[code]C:\\Program Files\\MyGeneration\\Templates\\dOOdasMySQL\\VbNet_MySQL_dOOdads_BusinessEntity.vbgen

Source: MyMeta

Error Number: -2147467262

Scripting Errors and Warnings:
[Error] MyMeta (155, 0) -2147467262: Et objekt af typen 'System.Byte[]' kan ikke konverteres til typen 'System.String'.
Stack Trace -[/code]

translated this error reads something like: An object of thy System.Byte[] cannot be converted to type System.String

I have not touched anything - added nothing to anything - as I'm totally green on mygeneration (as stated previously)

best regards,
Walther :oops:[/quote]
wdiechmann
Lurker
 
Posts: 3
Joined: Sun Jul 01, 2007 3:47 pm

Postby mgnoonan on Mon Jul 02, 2007 3:08 pm

You would have to search the forums for MySql, but I think I remember having to copy the MySql provider to the MyGeneration folder. There's a post somewhere on the forums telling what to do.
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Postby dnparsons on Mon Jul 02, 2007 4:27 pm

MySQL Connector 5.1.x is still Beta. I do not believe MyGeneration MyMeta has been tested against that. It includes improvements to stored procedure schema parsing, which may be breaking changes to MyGeneration. Have you tried the GA release 5.0.x? Matt is right, you need to copy MySql.Data.dll to the MyGeneration program folder.
David Neal Parsons
EntitySpaces
User avatar
dnparsons
Lieutenant General
 
Posts: 292
Joined: Sun Jan 09, 2005 2:10 pm
Location: Miami, Florida

Postby dnparsons on Mon Jul 02, 2007 4:37 pm

It occurred to me that they have added some data types to the latest MySQL. It may just be a mapping issue, which can be adjusted by the user. Once you have selected Language Mappings and Database Target Mappings in Default Settings, you can click on the icons on the toolbar. They are the third and fourth from the right. They can be changed and new mappings added. If you need to make changes, you should report them, so they can be added to the shipping version with the next release of MyGeneration.

But, I think the safest, easiest thing to do first is use the 5.0.x Connector.
David Neal Parsons
EntitySpaces
User avatar
dnparsons
Lieutenant General
 
Posts: 292
Joined: Sun Jan 09, 2005 2:10 pm
Location: Miami, Florida

Re:

Postby wdiechmann on Tue Jul 03, 2007 4:09 am

dnparsons wrote:It occurred to me that they have added some data types to the latest MySQL. It may just be a mapping issue, which can be adjusted by the user. Once you have selected Language Mappings and Database Target Mappings in Default Settings, you can click on the icons on the toolbar. They are the third and fourth from the right. They can be changed and new mappings added. If you need to make changes, you should report them, so they can be added to the shipping version with the next release of MyGeneration.

But, I think the safest, easiest thing to do first is use the 5.0.x Connector.


- oh so true :)

- 5.0.7 did the trick - now I'm building entityspaces templates - and thanks to you all!
wdiechmann
Lurker
 
Posts: 3
Joined: Sun Jul 01, 2007 3:47 pm


Return to Defect Reporting (DON'T Post dOOdad bugs HERE)

Who is online

Users browsing this forum: No registered users and 0 guests

cron