Daspoo Posted January 26, 2004 Posted January 26, 2004 Hi. If anyone has any answers or insight into this, it would be MOST appreciated. Right now, my computer has Visual Studio.NET installed (2002?? - it says "Microsoft Development Environment 2002") with .NET Framework 1.0 SDK installed on it. I just installed the 1.1 Redistributable Package and .NET Framework 1.1 SDK this afternoon. One of the reasons I did so was to be able to use the new System.Data.OracleClient namespace and children available in 1.1 to connect to an Oracle database in a web application. However, when I create a new project in VS.NET (ASP.NET Web Application for VB.NET), that namespace is not available to me; and going to the Help menu of VS.NET and looking at "About Microsoft Visual Basic.NET", it still shows the old .NET Framework version (1.0.3705) instead of the newly-installed 1.1. Is there something I'm missing here? Does anyone have any suggestions or ideas as to what I might be doing wrong? Any help would be most appreciated! Thanks in advance! :D Quote 3,450,897,223 posts away from crazy...
Administrators PlausiblyDamp Posted January 26, 2004 Administrators Posted January 26, 2004 IIRC Visual Studio.Net 2002 only targets the 1.0 framework, you will need to upgrade to VS.Net 2003 to be able to compile against the 1.1 Framework. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Daspoo Posted January 26, 2004 Author Posted January 26, 2004 So that basically means that 2002 won't recognize any of the code used in 1.1 then? So I'm basically left with either getting VS.NET 2003 or using 1.0 (for the time being) and downloading the "extras" I want to use with 2002 (i.e., Oracle connectivity availability, Mobile Internet Toolkit, etc.), huh? Thanks, Plaus, for the quick response! Quote 3,450,897,223 posts away from crazy...
NK2000 Posted January 27, 2004 Posted January 27, 2004 is that true? i got 2002 version and installed 1.1 sdk but i think i would get an error if i compile 1.1 on 2002 if that is really true, but i am not certain about my answer.. Quote
Daspoo Posted January 27, 2004 Author Posted January 27, 2004 Yep... Yep, from what I've recently read (and based on my previous question), you won't be able to compile apps using .NET Framework 1.1 in VS.NET 2002. Looks like we're both in a similar boat. :) Quote 3,450,897,223 posts away from crazy...
NK2000 Posted January 27, 2004 Posted January 27, 2004 hm but i thought the compiler is independent from the studio Quote
Daspoo Posted January 27, 2004 Author Posted January 27, 2004 Just going by what PlausiblyDamp indicated above. That and this page...http://msdn.microsoft.com/netframework/technologyinfo/versioncomparison/default.aspx (and it's corresponding link(s)) Quote 3,450,897,223 posts away from crazy...
mocella Posted January 29, 2004 Posted January 29, 2004 You can always just compile your project from the command line and that way get the 1.1 framework. My build machine has VS2002 and 1.1SDK and our Nant scripts compile at 1.1 framework just fine. Although if you can't see the namespace you might as well just code you classes in UltraEdit or something after you use VS2002 to design your forms. Any reason you can't upgrade to 2003 and run side-by-side installs? I recall the upgrade being fairly cheap. Quote
rustyd Posted February 25, 2004 Posted February 25, 2004 (edited) Update Framework to 1.1 I'm working on a PrintDialog issue with Microsoft and received the following advice from a GDI tech at Microsoft: By the way, just in case you don�t have 1.1, there are two ways to get it... 1 � You can get Visual Studio .Net 2003 which includes 1.1 and which automatically builds apps against the 1.1 Framework. or 2 � A - Download version 1.1 of the Framework from our web site... http://msdn.microsoft.com/netframework/technologyinfo/redist/default.aspx B - Then, configure your application to use 1.1 (instead of 1.0). See the �Configuring Windows Client Applications� section of... http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp In a nutshell, using this sample, you would create a small file in the same directory as your EXE called �yourexename.exe.config� containing... <configuration> <startup> <supportedRuntime version="v1.1.4322" /> <supportedRuntime version="v1.0.3705" /> </startup> </configuration> Assuming v1.1.4322 and v1.0.3705 are the versions you have on your system. You can check by going to the windows\microsoft.net\framework directory and viewing the subdirectory names there. I then added a label to the About form to show the version of the .NET Framework we are using: lblVersion.Text = ".NET Framework Version " & Environment.Version.Major _ & "." & Environment.Version.Minor _ & "." & Environment.Version.Build Edited February 25, 2004 by rustyd Quote rustyd
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.