Last post Jul 09, 2008 04:30 PM by Saturday3AM
Jul 08, 2008 02:09 PM|Saturday3AM|LINK
Image below shows exactly what my problem is. Why can't I select 3.5 in the list when it's the only version I have installed?
I downloaded 3.5 again and selected repair but the problem remains.
Jul 08, 2008 02:12 PMemail@example.com|LINK
Why can't I select 3.5 in the list when it's the only version I have installed?
Because 3.5 uses the 2.0 framework. You can't select a version, only the framework version, which is still 2.0. Blame Microsoft for confusing numbers. :)
Jul 08, 2008 03:08 PM|Saturday3AM|LINK
But it seems I can't use things new in 3.5 like var for example. And I don't get the AJAX Extensions category in the toolbox in VWD 2008. Hmm.
Jul 08, 2008 03:25 PM|gibble|LINK
Did you remember to add "using System.Linq;" to the top of your file? Or whatever the vb equivelant is.
Jul 08, 2008 04:30 PM|Saturday3AM|LINK
I didn't know that. What does this namespace contain?
Tried to add it but I get the error: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)
Would the error suggest 3.5 is not working?
Jul 08, 2008 04:43 PM|Pak514|LINK
RIght click on the website add reference. Is system.linq under .net?
Jul 08, 2008 04:44 PM|shados|LINK
You're upgrading a .NET 2.0 web site i'm guessing?
To use .NET 3.5 features you need to update the web.config. I don't know the keys by heart, but it has to do with the compilation section of the configuration. I'm sure someone smarter than me will post it here eventually, but in the meantime you can simply
compare the web configs between your application and the configs of a fresh new 3.5 enabled ASP.NET web site and/or web application (whatever you're using).
Jul 08, 2008 05:24 PM|Saturday3AM|LINK
Yes maybe I should have mentioned that but there's no reference to any specific .NET Framework version on the site (not even in web.config) so I thought it didn't matter.
I actually started making the site in notepad, the old fashioned way long ago so there's no stuff in the web.config that have been added automatically. It's just a minimal amount of things that I put there manually.
I tested starting a new project in VWD (it said 3.5 there which is good) and I was surprised to see 168 lines of code in web.config o_O What does it all do? What parts do I need for 3.5? I really prefer the old way of adding things manually so I know what
Jul 09, 2008 06:24 AM|Saturday3AM|LINK
Jul 09, 2008 10:49 AMfirstname.lastname@example.org|LINK
how do I tell VWD that the site is now 3.5 instead of 2.0?
Make sure you're using VWD 2008 and set the target framework to 3.5.
Jul 09, 2008 11:37 AM|Saturday3AM|LINK
Jul 09, 2008 03:29 PMemail@example.com|LINK
How do I set target framework?
Property pages in Solution Explorer, under Build. The 3.5 framework is the default.
Jul 09, 2008 04:30 PM|Saturday3AM|LINK
Couldn't find that specific setting in those properties.
Anyway, I solved the problem by creating a new empty website project (instead of just opening existing website project) in the same folder as the old website I'm converting to 3.5 and now it recognises it properly as that version.
Thanks for your help!