p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VS.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=103)
-   -   VS IDE doesn't see Framework 1.1? (http://p2p.wrox.com/showthread.php?t=8996)

Ron Howerton February 5th, 2004 11:45 AM

VS IDE doesn't see Framework 1.1?
 
Framework version 1.0.3705 was installed when I first set up the VS IDE. I've since installed Framework 1.1, which I downloaded from Microsoft's site. It ran rather quickly, but appeared to install and a glance at Add/Remvoe Programs shows both 1.0.3705 and 1.1 installed on the machine. Yet when I open the Help:About window in the VS IDE, it still references Microsoft Framework 1.0, version 1.0.3705. Does anybody else see this or do you see Framework 1.1 after installing it?

So, is 1.1 being ignored or is the Help:About window in the IDE wrong? If it's ignoring 1.1, what do I need to do to get it to recognize it? Do I need to uninstall 1.0.3705? I'm reluctant to do anything more without guidance for fear of trashing my design environment. Any words of wisdom would be appreciated. TIA...

planoie February 5th, 2004 12:37 PM

This is by design. VS.net 2002 runs on framework 1.0, VS.net 2003 runs on 1.1. You can have both frameworks and both VS versions on the same machine and they will each run separate on the appropriate framework. If you want to develop in 1.1 you'll need to obtain VS.net 2003. However, code developed for 1.0 can run on 1.1 if it's forward compatible. Likewise, code developed in 1.1 can run on 1.0 if it's backwards compatible. MS changed some of the more complex features from 1.0 to 1.1 in a way that they would NOT be backwards or forwards compatible intentionally. There were some security issues that they needed to fix and I guess wanted to force people to apply the better techniques in their code when upgrading to 1.1.

Peter
------------------------------------------------------
Work smarter, not harder.

Imar February 5th, 2004 12:38 PM

What version of Visual Studio .NET are you using?

Version 2002 will *only* compile against the framework version 1.0, just as version 2003 will *only* use framework version 1.1.

So, to get VS .NET to recognize framework 1.1, you'll need to upgrade to Visual Studio .NET 2003.

AFAIK, the upgrade is cheap. For $49 you can upgrade your 2002 edition.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.

Ron Howerton February 5th, 2004 12:48 PM

Thanks for the fast responses. I will install VS 2003 immediately on my development box. But this leads to another question:

Our IIS server was also running 1.0.3705 and I've installed 1.1 on it. There is no VS environment on the production server and I did not uninstall 1.0.3705, so both versions are there. Which one will be used? Is it smart enough to RUN programs written in 2002 in 1.0.3705 and those written in 2003 in in 1.1? Since there are compatability issues going both ways, how can that be resolved on a server running programs written in both VS versions? Should I uninstall 1.0.3705 on the production server to avoid confusion?

planoie February 5th, 2004 12:56 PM

My understanding is that the runtime is smart enought to figure out what it should do. The code will run on the latest framework it can. If the code CAN run on 1.1, it will (even if both are installed). If it CANNOT run on 1.1 due to some compatibility issue, it will rollback and run on the 1.0 framework (unless 1.0 isn't there, then it'll fail). Again, I *think* this is the way it works, I recall reading it somewhere.

Peter
------------------------------------------------------
Work smarter, not harder.

Ron Howerton February 5th, 2004 01:01 PM

I had hoped that was how they made it work if these differences exist. I guess I'll find out soon enough. Thanks again for your help understanding this.


All times are GMT -4. The time now is 06:09 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.