tags:

views:

145

answers:

3

Ok, this is probably a trivial thing to know - hence the trivia tag! - but does anyone know of any difference in final output that would give away the version of the runtime that was used?

In other words, if you visit a website and you know it's generated via ASP.NET, are there any telltale things about the markup that would give away whether the site is running against 2.0 or 3.5?

+1  A: 

There is nothing guaranteed to be output that will indicate what you're looking for.

This is especially true since you can create HTTP handlers that will output anything you want.

Andy West
Andy's correct, my current project's headers indicate the site's powered by Pure Evil.
Nick Craver
well, im not necessarily talking about a guarantee. just something that tends to get rendered one way in 2.0, and another way in 3.5. anything at all really.
LoveMeSomeCode
@LoveMeSomeCode - There's nothing different in that respect, there's MORE stuff, but nothing was replaced from 2.0 to 3.5, it's all the 2.0 CLR, and most of the web controls are from the original 2.0 release.
Nick Craver
Perhaps if you tell us what you're trying to accomplish we can help you better. I can't think of why this information would be useful.
Andy West
"I can't think of why this information would be useful" - this was probably my motivation behind the 'trivia' tag.
LoveMeSomeCode
+1  A: 

No. The HTTP headers are configurable by admins, so they are unreliable. For instance stackoverflow.com says:

Server: Microsoft-IIS/7.5

MSN.com says:

X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727

and 37signals.com says:

X-Powered-By: PHP/5.3.0

And anyone can make any php site respond that is powered by ASP.Net 3.5 or claim that is a perl script when in fact is a ASP site. At the end of they day, HTTP is just text and all the headers are configurable by someone knowledgeable, and they mean little to nothing from a trust perspective.

Remus Rusanu
That's what I was looking for. I should have clarified that I wasn't looking for a foolproof solution or expecting someone to try something deceptive with the headers. The X-Powered-By in Firefoxes WebDeveloper Add-in gives me exactly what I was looking for. Thanks!
LoveMeSomeCode
A: 

There is no such thing as ASP.NET 3.5. Only 2.0 (and soon, 4.0).

Keep in mind that .NET 3.5 is just some extra assemblies on top of some .NET 2.0 service packs. There is no new CLR, hence, no new ASP.NET version.

John Saunders
I'm not so sure about that. After all, Microsoft has published a book called "Microsoft® ASP.NET 3.5 Step by Step". I know what you're trying to say, though.
Andy West