0

In windows, is it possible that .Net is installed on a system but is not enabled ?

If so how can it be enabled via a c++ program ?

thomasb
  • 5,816
  • 10
  • 57
  • 92
not-a-robot
  • 321
  • 1
  • 14

1 Answers1

2

.Net is either installed, or it is not. It cannot be installed but not "enabled", whatever that means.

The installation can be corrupted, which means some parts of .Net would work, and others would not. You most often find this problem on old XP computers, and on machines which have been attacked by virus.

You can detect whether .Net is installed through the registry : How to detect what .NET Framework versions and service packs are installed?

Update - IIS

A comment on the OP made a good point: you can indeed have .Net installed, but not activated (or rather, not correctly configured) on IIS.

To make sure .Net is enabled on IIS, run:

C:\Windows\Microsoft.NET\Framework[64]\v4.0.30319\aspnet_regiis.exe -ir

Then you will have to configure the IIS application pools to use the correct version of the .Net framework for what you want; currently it's either .Net 2, which includes 3.0 and 3.5, or .Net 4, which includes 4.5.

More information here and here.

Community
  • 1
  • 1
thomasb
  • 5,816
  • 10
  • 57
  • 92