HighTechTalks DotNet Forums  

Mixing dotnet 2.0 and dotnet 1.1 assemblies..

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Mixing dotnet 2.0 and dotnet 1.1 assemblies.. in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
pdabak@yahoo.com
 
Posts: n/a

Default Mixing dotnet 2.0 and dotnet 1.1 assemblies.. - 09-19-2006 , 08:39 AM






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


Reply With Quote
  #2  
Old   
agapeton@gmail.com
 
Posts: n/a

Default Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. - 09-26-2006 , 04:19 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.

pdabak (AT) yahoo (DOT) com wrote:
Quote:
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


Reply With Quote
  #3  
Old   
Ben Voigt
 
Posts: n/a

Default Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. - 10-05-2006 , 05:29 PM



<agapeton (AT) gmail (DOT) com> wrote

Quote:
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
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.

Quote:
assembly. If you HAVE to do that, you may want to 1.1 items as COM or
something. I do that with many apps.

pdabak (AT) yahoo (DOT) com wrote:
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




Reply With Quote
  #4  
Old   
SenthilVel
 
Posts: n/a

Default Re: Mixing dotnet 2.0 and dotnet 1.1 assemblies.. - 10-10-2006 , 06:12 AM



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


"Ben Voigt" <rbv (AT) nospam (DOT) nospam> wrote

Quote:
agapeton (AT) gmail (DOT) com> wrote in message
news:1159301947.851478.209980 (AT) e3g2000cwe (DOT) googlegroups.com...
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

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.

assembly. If you HAVE to do that, you may want to 1.1 items as COM or
something. I do that with many apps.

pdabak (AT) yahoo (DOT) com wrote:
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






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.