Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2006

Tip: Looking for answers? Try searching our database.

Mixing dotnet 2.0 and dotnet 1.1 assemblies..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pdabak@yahoo.com - 19 Sep 2006 13:39 GMT
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
agapeton@gmail.com - 26 Sep 2006 21:19 GMT
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.

> Hello,
>
[quoted text clipped - 23 lines]
> Thanks.
> -Prasad
Ben Voigt - 05 Oct 2006 22:29 GMT
> 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.
[quoted text clipped - 26 lines]
>> Thanks.
>> -Prasad
SenthilVel - 10 Oct 2006 11:12 GMT
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

>> 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
[quoted text clipped - 37 lines]
>>> Thanks.
>>> -Prasad

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.