How can i know....?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

....the framework installed in my web server?

I'm developing an asp.net app, but i don´t know what version of the
framework is installed in the server
 
Look in your windows directory. On my machine it is

c:\winnt\Microsoft.NET\Framework

It will have directories for each installed framework.

I have two directories:

v1.0.3705\
v1.1.4322\

HTH,

bill
 
I have always been wondering..is there any way to detect if the client has
the .net framework installed and what version?
 
This might not work all the time, but it has worked for me all the time.

You can look at the Request.Header["User-Agent"].

On my machine it lists:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

So you could probably just parse for the .NET CLR and find the version
number that way. I believe it only lists one of the versions that you have
installed (the primary version)

HTH,

bill
 
I have always been wondering..is there any way to detect if the client has
the .net framework installed and what version?

In an ASP.Net application, this is irrelevant. No .Net platform is required
on the client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
There is also the Request.Browser.ClrVersion property.

--
Scott
http://www.OdeToCode.com/blogs/scott/

This might not work all the time, but it has worked for me all the time.

You can look at the Request.Header["User-Agent"].

On my machine it lists:
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"

So you could probably just parse for the .NET CLR and find the version
number that way. I believe it only lists one of the versions that you have
installed (the primary version)

HTH,

bill

Tampa .NET Koder said:
I have always been wondering..is there any way to detect if the client has
the .net framework installed and what version?
 
I know that much. I just wanted to know if it could have been done. Maybe
when they are downloading like a winform app or someting you can inform them
that they don't have the .net framework installed. Something like what the
asp.net team used one their download page for webmatrix...it beleive I saw
this functionality there
 
The problem is that i don't have access to the machine, i just have write
permission for the web directory (the wwwroot), and the Administrator is a
little.... slow :-)
 
Back
Top