How to detect .Net Framework installed in a web client?

In my last post I talked about how to detect .Net framework installed in your local machine. This is another .Net framework detection. But not for you, it is for web servers. Suppose you browse some web site. How does that web site know if you have installed .Net framework? If you did, which version of .Net framework have you installed?

Whenever .Net framework is installed, it adds a string to Internet Explorer's user agent. For example, I have both 1.0 and 1.1 .Net framework installed. The user agent of my IE browser will be “User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;  .NET CLR 1.0.3705;  .NET CLR 1.1.4322)”.

The user agent string is added at this reg key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform]

Of course, this works only for IE.

Comments (3)

  1. Doing things the hard way with RSS Bandit leads to some interesting statistics; Stuff for my Boss and co-workers; SOA and Joe Developer — Phillip gets it right (again); Bits on Reporting Services; Wake up and smell RSS.NET; htmlArea (drool); InfoPath duh; McD’s

  2. Rob Hetlam says:

    I need:


    SettingsUser AgentPost Platform"

    registry entries for a .Net V.1.0 and .Net V.1.1 enabled browser.

    Mine got erased and is now affecting Visual Studio .Net 7 & 7.1

    My IIS web log reports the following:


    …..but it’s missing the .Net extensions

    Also, I’m not sure if the value:



    "User Agent"="Mozilla/4.0 (compatible; MSIE 6.0; Win32)"

    …….is ever actually read or used.

    Thnaks thats tahnks thats thanks (-:

    Please email with a sample *.reg file (if you have one)

Skip to main content