Detecting .Net Framework

  • Thread starter Thread starter Mazen
  • Start date Start date
M

Mazen

Is there a way to detect if a web client has the .Net
framework redistributable package installed on his
computer?

I have a Win Form control embedded in an html page and
the user can not run the control unless he is using IE
and has the .Net framework installed. So I am looking for
a way to automatically notify a user if he doesn't have
the framework installed.

thanks,

mazen
 
Mazen,

Yes there is. Below is a raw http request

"GET /images/menubg.gif HTTP/1.1\nAccept: */*\nReferer:
http://localhost:3328\nAccept-Language: en-us\nAccept-Encoding: gzip,
deflate\nIf-Modified-Since: Mon, 20 Aug 2001 13:47:04 GMT\nUser-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; TUCOWS; Q312461; .NET CLR
1.0.3705; .NET CLR 1.1.4322)\nHost: localhost:3328\nConnection:
Keep-Alive\n\n"

The installed .NET versions are part of the user-agent header.
This may not be 100% reliable though since there are tools available to
endusers to fake and change headers.

Hope this helps,
Edwin Kusters
 
Back
Top