wrapper in .NET 1.1 to call a .NET 2

  • Thread starter Thread starter WT
  • Start date Start date
W

WT

Hello,

I have a .NET 1.1 application that load and call a custom assembly.
Problem is that this is working only with .net 1.1 custom assemblies, and I
have no access to the code for this application.
Is it possible to create a wrapper assembly in.NET 1.1 that could load and
call another assembly build in .NET 2 ?
This way I would encapsulate my custom assemblies made in .NET 2 with this
wrapper.

Thanks MS for help...and for any lightened opinions and help.
CS
 
CS,

Not really. You would have to make an out-of-process call to do this.
Once the CLR is loaded for a process, you probably shouldn't (and I believe
can't) run another version of the CLR in that process.

What you would have to do is create another process which you could
call. Unfortunately, you can't use remoting, so you would have to generate
some inter-process communication mechanism to make the calls.

All in all, your best bet is to upgrade your 1.1 app to a 2.0 app.

Hope this helps.
 
The only way I think you could use the 2.0 assembly would be to modify
the .config file for your binary to run under .net 2.0. But i'm not
sure that would allow your assembly to load.

<configuration>
<startup>
<supportedRuntime version="v2.0.50727" /> <!-- Make sure this
is the first one -->
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

HTH
 
Back
Top