I realize this is probably a hopelessly newbie question, but what is the difference between the ASP.NET version and the .NET framework version?
I am making an asp.net site using the .net 3.5 framework, but when I echo this;
System.Environment.Version.ToString()
I get “2.0.50727.4927”.
Is this then an ASP.NET 2.0 site? This seems odd since I am using visual studio 2008 and the .net 3.5 framework.
No, the .NET Framework 3.5 version is simply a set of extra assemblies that are referenced in addition to the core .NET 2.0 assemblies, so calling System.Environment.Version.ToString() will always return 2.0.50727.4927 for all versions from .NET 2.0 up to .NET 3.5.
You’re running .NET 3.5 if you’re referencing .NET 3.5 assemblies.