Same problem

22 views
Skip to first unread message

neoikon

unread,
Mar 20, 2011, 6:15:42 PM3/20/11
to DbLinq
Sam (and all),

I am running into the same problem. Did you find a solution?

For me, I am trying to running dbMetal against MySql.Data. I have two
versions of MySql.Data.dll, one built with framework v2.0 and one with
v4.0. I've tried both. v4.0 blows up immediately, but v2.0 seems to
get a little further and throws the same errors you saw. Both using
the same version of DBMetal (v0.20.1)

What was the solution you found?

Here is the error I am receiving when using the -debug flag:

DbLinq Database mapping generator 2008 version 0.20
for Microsoft (R) .NET Framework version 3.5
Distributed under the MIT licence (http://linq.to/db/license)

>>> Reading schema from MySQL database
<<< writing C# classes in file 'filename.cs'
DbMetal: System.IO.FileLoadException: The given assembly name or
codebase was in
valid. (Exception from HRESULT: 0x80131047)
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean
throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&
stackMark, Boolean
loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
throwOnError,
Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean
throwOnError, B
oolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at DbMetal.Generator.CodeDomGenerator.ToCodeTypeReference(Column
column) in z
:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\CodeDomGenerator.cs:line 898
at
DbMetal.Generator.CodeDomGenerator.CreateChangingMethodDecl(Column
column)
in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\CodeDomGenerator.cs:line
892
at
DbMetal.Generator.CodeDomGenerator.<GenerateExtensibilityDeclarations>b__2
8(Column c) in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\CodeDomGenerat
or.cs:line 868
at
System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at
DbMetal.Generator.CodeDomGenerator.GenerateExtensibilityDeclarations(CodeT
ypeDeclaration entity, Table table) in z:\Development\DbLinq-0.20.1\src
\DbMetal\
Generator\CodeDomGenerator.cs:line 867
at DbMetal.Generator.CodeDomGenerator.GenerateTableClass(Table
table, Databas
e database) in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\CodeDomGenerat
or.cs:line 683
at DbMetal.Generator.CodeDomGenerator.GenerateCodeDomModel(Database
database)
in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\CodeDomGenerator.cs:line
175
at DbMetal.Generator.CodeDomGenerator.Write(TextWriter textWriter,
Database d
bSchema, GenerationContext context) in z:\Development\DbLinq-0.20.1\src
\DbMetal\
Generator\CodeDomGenerator.cs:line 85
at
DbMetal.Generator.Implementation.Processor.GenerateCode(Parameters
paramet
ers, Database dbSchema, ISchemaLoader schemaLoader, String filename)
in z:\Devel
opment\DbLinq-0.20.1\src\DbMetal\Generator\Implementation
\Processor.cs:line 234
at DbMetal.Generator.Implementation.Processor.WriteSchema(Database
dbSchema,
ISchemaLoader schemaLoader, Parameters parameters) in z:\Development
\DbLinq-0.20
.1\src\DbMetal\Generator\Implementation\Processor.cs:line 178
at
DbMetal.Generator.Implementation.Processor.ProcessSchema(Parameters
parame
ters) in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
\Implementation\Proce
ssor.cs:line 116
Reply all
Reply to author
Forward
0 new messages