Sorry for not replying earlier, I had answered the ~same question in
bugzilla, and somehow thought I had thus answered it...

My best guess [0] is that you have an architecture mis-match, e.g. you
built DbLinq under Visual Studio 2010 (and are targeting the .NET 4.0
platform) while the Firebird ADO.NET provider is compiled for .NET 2.0,
and .NET 4.0 is refusing to load the 2.0 assembly.

If this is the case, there are (at least) two solutions:

 1. Rebuild DbLinq to target .NET 3.5 (should be a drop-down in the 
    Project Options dialogs...)
 2. Provide an assembly manifest (e.g. DbMetal.exe.config) that 
    permits loading the .NET 2.0 assembly under .NET 4.0; XML 
    snippet for this is at [0].

 - Jon

[0] http://code.google.com/p/dblinq2007/issues/detail?id=269

On Fri, 2010-08-06 at 08:00 -0700, sam wrote:
> Jon,
> 
> here you go:
> 
> 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)
> 
> DbMetal: System.IO.FileLoadException: The given assembly name or
> codebase was invalid. (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, Boolean ignoreCase, Boolean reflectionOnly,
> StackCrawlMark& stackMark)
>    at System.Type.GetType(String typeName)
>    at
> DbMetal.Generator.Implementation.SchemaLoaderFactory.Load(Parameters
> parameters, String dbLinqSchemaLoaderTypeName, String
> databaseConnectionTypeName, String sqlDialectTypeName) in z:
> \Development\DbLinq-0.20.1\src\DbMetal\Generator\Implementation
> \SchemaLoaderFactory.cs:line 126
>    at
> DbMetal.Generator.Implementation.SchemaLoaderFactory.Load(Parameters
> parameters) in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
> \Implementation\SchemaLoaderFactory.cs:line 62
>    at DbMetal.Generator.Implementation.Processor.ReadSchema(Parameters
> parameters, ISchemaLoader& schemaLoader) in z:\Development
> \DbLinq-0.20.1\src\DbMetal\Generator\Implementation\Processor.cs:line
> 241
>    at
> DbMetal.Generator.Implementation.Processor.ProcessSchema(Parameters
> parameters) in z:\Development\DbLinq-0.20.1\src\DbMetal\Generator
> \Implementation\Processor.cs:line 110
> 


-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to