LLBLGen Pro v2.6 and .net 4.0 assemblies containing TypeConverters

Posts   
 
    
DaveW_396
User
Posts: 5
Joined: 15-Jul-2009
# Posted on: 29-Jul-2010 00:54:19   

I have been using v2.6 of LLBLGen pro. Some of my assemblies use type converters. The assemblies have been migrated to .net 4.0. When I load the assemblies with type converters I get a load error :

This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT: 0x8013101B)

What do I do to resolve this? Is there a configuration setting somewhere in v2.6 to specify the target framework?

I have not done any upgrades to my v2.6 since we received it a year ago.

Thanks for any help Regards, DaveW

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 29-Jul-2010 11:19:30   

Mind you: unsupported/untested for v2.6

In v3, we added the following to the llblgenpro.exe.config file:

    <startup>
        <!-- .NET 4.0 specific
             ====================
             if the designer has to run on .NET 4.0 due to add-ins/plugins/other assemblies ran which are natively compiled against .NET 4.0
             please uncomment the following line. -->
        <!--<supportedRuntime version="v4.0.30319"/>-->
    </startup>

    <runtime>
        <!-- .NET 4.0 specific
             ====================
             if the designer has to run on .NET 4.0 due to add-ins/plugins/other assemblies ran which are natively compiled against .NET 4.0
             please uncomment the following line. -->
        <!--<legacyCasPolicy enabled="true" />-->

the lines are commented out here, so you have to uncomment them and make sure the config file has the proper end tags for the elements. There's likely already a <startup> element, so you can ust add the supported runtime element and remove the other ones there.

Frans Bouma | Lead developer LLBLGen Pro
DaveW_396
User
Posts: 5
Joined: 15-Jul-2009
# Posted on: 29-Jul-2010 18:19:18   

This appears to have resolved the issue. Thank you very much.

DaveW