Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Check whether Dot Net Platform installed

Anyone know how this page works?

http://www.asp.net/webmatrix/CheckDotNet.aspx?tabindex=0&tabid=1

Cheers,
Matt
0
cdpMat
Asked:
cdpMat
  • 2
1 Solution
 
naveenkohliCommented:
This information is there in
Request.Browser property corresponds to HttpBrowserCapabilities class. But this is not a very reliable way. Some browsers may not transmit this information to the server.
Loo at the documenation for this property, it has complete sample there.
0
 
Mohammed NasmanSoftware DeveloperCommented:
Hello

  You can try two things to check if the framework installed

First one: check if the mscoree.dll exist in the %windir%\system32

or by checking the windows registry key, look at
http://support.microsoft.com/default.aspx?scid=kb;en-us;315291

try the code in this page
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=64d42c947e593d34&seekm=uLUyTtvqCHA.436%40TK2MSFTNGP12&frame=off

Best regards
Mohammed Nasman
0
 
iboutchkineCommented:
1. Check if such dir exists
%windir%\Microsoft.NET\Framework\

or

You could check the registry. The location
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
contains a registry key for each program installed. This information is
listed in Add/Remove Programs in Control Panel.

The key for Microsoft .NET Framework is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B433
57AA-3A6D-4D94-B56E-43C44D09E548}


also

You can search for this Registry key.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0 and its
Value key value.

0
 
naveenkohliCommented:
Web apps can't check a client's registry without the help of an ActiveX control.
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now