How do 1.1 dlls execute in a 2.0 worker process

G

ggupta78

Hi,

Recently i have ported our 1.1 web application to 2.0 using the Web
application project model.

Some of our referenced third party dlls are 1.1 and the rest 2.0.

Now on my Win XP machine, two aspnet_wp processes are created, one
hosting the 1.1 runtime and the other 2.0 runtime.

So what i wanted to understand was, exactly how are the 1.1 dlls being
executed from my 2.0 application?
1) Is the 1.1 runtime being loaded separately or within the same
aspnet_wp? Since what i have gathered till now is that two different
runtimes cannot be hosted within the same process.

Or
2) The 1.1 dlls are being executed on the 2.0 runtime. And we might
face an application crash if an incompatibility is encountered.

Thanks for your answers.
gautam
 
R

Rory Becker

Recently i have ported our 1.1 web application to 2.0 using the Web
application project model.

Some of our referenced third party dlls are 1.1 and the rest 2.0.

Now on my Win XP machine, two aspnet_wp processes are created, one
hosting the 1.1 runtime and the other 2.0 runtime.

So what i wanted to understand was, exactly how are the 1.1 dlls being
executed from my 2.0 application?
1) Is the 1.1 runtime being loaded separately or within the same
aspnet_wp? Since what i have gathered till now is that two different
runtimes cannot be hosted within the same process.
Or
2) The 1.1 dlls are being executed on the 2.0 runtime. And we might
face an application crash if an incompatibility is encountered.
Thanks for your answers.
gautam

As I understand it...

....You can only have 1 runtime version per process so if you're seeing 2
* aspNet_wp processes then you're likely running 2 web apps (or possibly
webservices) each geared toward a different version of the framework .

....Third Party 1.1 libraries will run in v2.0 of the framework if called
from libraries that were written for the 2.0 framework.
 
G

ggupta78

Hi Rory,

Thanks for your reply.

So, if 1.1 libraries run on the 2.0 Framework, then that means there
is a possibility that if an incompatibility between 1.1 and 2.0 is
encountered our application might throw an exception, right?

So, either we try and use a 2.0 version of the library, or get the
features which we use in the 1.1 library thoroughly tested to make
sure there is no existing issue after the migration to 2.0.

What would be the general recommendation in such a migration scenario?

thanks,
gautam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top