VS 2010, VB, Mixed mode assembly is built against version...

The engine.
Post Reply
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

VS 2010, VB, Mixed mode assembly is built against version...

Post by frito »

Hi

I get a runtime error in VS 2010 VB "Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

I tried to followed advices I found on the net (adding <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>)


but no luck (I actually am not even sure to which file to add it )

.vbproj contains <Configuration Condition=" '$(Configuration)' == '' ">Debug<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" /></startup></Configuration>

but also not working.

???
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

Re: VS 2010, VB, Mixed mode assembly is built against versio

Post by frito »

On the same machine when I added the above discussed setup lines to a Matlab setup file I was able to load the smilenet.dll into Matlab.

But I would like to work with smile in VS 2010, where the problem remains.
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

Re: VS 2010, VB, Mixed mode assembly is built against versio

Post by frito »

frito wrote:On the same machine when I added the above discussed setup lines to a Matlab setup file I was able to load the smilenet.dll into Matlab.

But I would like to work with smile in VS 2010, where the problem remains.
any solution?
Post Reply