all groups > dotnet clr > september 2006 >
You're in the

dotnet clr

group:

Mixing dotnet 2.0 and dotnet 1.1 assemblies..


Mixing dotnet 2.0 and dotnet 1.1 assemblies.. pdabak NO[at]SPAM yahoo.com
9/19/2006 5:39:13 AM
dotnet clr:
Hello,

I have a ASP.NET application which consists of multiple assemblies. One
assembly contains some base classes say MyTypes.dll. Other assemblies
have classes which inherit from these base classes. MyTypes.dll is
installed in GAC. This application was running fine on ASP.NET 1.1
framework.

Now, I want to move my application to ASP.NET 2.0. However, due to
release schedules, I don't want to port all the assemblies to 2.0 right
away and instead have an incremental approach. I want to first move
MyTypes.dll to ASP.NET 2.0 and then move rest of the assemblies to
ASP.NET 2.0 over the period of time.

When, I attempt this, I get type load failure errors on accessing my
application. Is there any way by which I can instruct ASP.NET 1.1 pages
to use the MyTypes.dll compiled with ASP.NET 2.0?

The virtual directories for my application are configured with ASP.NET
2.0. However the code behind is compiled using ASP.NET 1.1 and is
trying to use types from MyTypes.dll which is compiled with ASP.NET
2.0.

Any help will be appreciated.

Thanks.
-Prasad
Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. agapeton NO[at]SPAM gmail.com
9/26/2006 1:19:07 PM
I'm 99% sure you're trying the impossible. Get the source code and
recompile. If you have to get reflector, it allows you to read the
assembly. If you HAVE to do that, you may want to 1.1 items as COM or
something. I do that with many apps.

[quoted text, click to view]
Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. Ben Voigt
10/5/2006 4:29:45 PM
[quoted text, click to view]

Agreed. You don't have to "port" the other assemblies to use any new 2.0
features at this stage, just run them through the 2.0 compiler which
understands the new metadata format.

I think you could mix 1.1 and 2.0 assemblies in the same app because the 2.0
runtime understand both. But a 1.1 assembly can never inherit from a 2.0
class because the 1.1 compiler can't import the 2.0 assembly.

[quoted text, click to view]

Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. SenthilVel
10/10/2006 3:42:56 PM
Hi

I am also in the process of converting my web apps to 2.0.

The best method is MIGRATE your project to CLR2.0.

The web app and all the related assmeblies must be pointing to 2.0.

I have a few links which are mentioned in my blog reg this , plese check
those.

Thanks
Senthil
http://dotnetcrunch.blogspot.com


[quoted text, click to view]

AddThis Social Bookmark Button