Detecting .Net Framework

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
 
E

Edwin Kusters

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top