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 / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Forcing a .NET framework 1.1 application to use .NET framework 2.0 without creating application config files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pdabak@yahoo.com - 05 Apr 2007 07:02 GMT
Hello,

I have a console application that is compiled using VS 2003 and hence
targetted for .NET 1.1 runtime. This application uses some  shared
assemblies (my own) that were also initially compiled using VS 2003
and hence targetted for .NET 1.1.

Recently we have moved those shared assemblies to .NET 2.0. However
the console application is not yet moved to .NET 2.0. Now, when this
console application runs, it fails to load those shared assemblies
since the application uses .NET framework 1.1 runtime and the shared
assemblies it requires are now .NET 2.0. If I create a application
config file for the console application to use .NET 2.0, it all works
fine.

However, creating an application config file is not a feasible option
for us since there are many such applications and some of them are
packaged in our installers and we don't want to rebuild those
installers with the application config files.

The question is: Is there any way to force a set of applications to
always use .NET 2.0 without explicitly creating application config
files?

Any help will be much appreaciated.

Thanks.
-Prasad
Clive Dixon - 05 Apr 2007 09:21 GMT
There is a registry key you can set - see the section "Test 4" at:

http://msdn2.microsoft.com/en-us/library/ms994387.aspx

> Hello,
>
[quoted text clipped - 24 lines]
> Thanks.
> -Prasad
Clive Dixon - 05 Apr 2007 11:37 GMT
Should have also noted that if you have a machine with 1.1 & 2.0 installed,
config files won't help you anyway - a 1.1 app will still use 1.1 (except
for add-ins running under native apps). See Table 1 at

http://msdn2.microsoft.com/en-us/library/ms994381.aspx

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.