0

I am creating a diagnostic page for ASP.NET and would like to programatically detect if ASP.NET 3.5 has been installed on the server. Any ideas on how to best do this?

2
  • can you correct the spelling of your question title? :) Commented May 6, 2009 at 7:01
  • 1
    I really liked the first version!! Commented May 6, 2009 at 7:10

1 Answer 1

1

System.Environment.Version gives you the CLR version.
For ASP.NET 2.0, 3.0 and 3.5 it will return the same CLR version: 2.0.50727.3053
As for ASP.NET 4.0 the CLR version will change to 4.*

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.