Quantcast
Channel: .NET Framework Setup and Servicing forum
Viewing all articles
Browse latest Browse all 3295

Compile error when trying to use license.licx from 3rd party for a project using 4.0 runtime while the 3rd party controls are older runtimes.

$
0
0

I ran into a compile issue stating Error: "Mixed mode assembly is built against version of runtime v1.1.4322 and cannot be loaded in 4.0 runtime without additional configuration information" for a License.licx file from a 3rd party component included inside my Project I wanted to update to .Net 4.0

The problem was not in the license.licx file or the assembly, but lc.exe included with Visual Studio 2010 C:\<ProgramFilesFolder>\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\lc.exe

This is the exe that processes the license.licx file when compiling the project.

I needed to add support inside a config file in order resolve this error. So I created  a new lc.exe.config inside notepad and added this information then copied it to the same directory as the exe and now my license can be checked appropriately and my project can now use the .Net 4.0 Framework.

lc.exe.config

<?xml version ="1.0"?>

<configuration>

    <runtime>

        <generatePublisherEvidence enabled="false"/>

    </runtime>

      <startup useLegacyV2RuntimeActivationPolicy="true">

            <supportedRuntime version="v4.0"/>

      </startup>

</configuration>

Good luck if you run into the same issue.

Heath Morris



Viewing all articles
Browse latest Browse all 3295

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>