I installed dot net framework 4.6.2 from this path and now I want to register this in IIS.
If it was a version of an earlier version (2.0.3.5, etc.) and an earlier server (for example, Windows 2003), I would type the following command on the appropriate path.
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i
However, I cannot find the path to folder 4.6.2 on this server. and even setting this command here gives the following message:
Microsoft (R) ASP.NET RegIIS version 4.0.30319.0 Administration utility for installing and removing ASP.NET on the local computer. Copyright (C) Microsoft Corporation. All rights reserved. Installation of ASP.NET (4.0.30319.0) has begun. This option is not supported by this version of the operating system. Administrators should instead install / uninstall ASP.NET 4.5 using IIS8 using the "Turn Windows" Dialog Box "Enable / Disable Features", Server Management Tool or dism.exe command line tool. See http://go.microsoft.com/fwlink/?LinkID=216771 for more information . Ready installation of ASP.NET (4.0.30319.0).
I know that the web link in the message is for 4.5, because 4.5 is an in-place update on 4.0.
My site gives this error:
'targetFramework' Web.config 4.0 .NET Framework (, ''). 'targetFramework' , .NET Framework. .NET Framework .NET Framework.
web.config:
<system.web>
<compilation debug="true" targetFramework="4.6.2"/>
<httpRuntime targetFramework="4.6.2"/>
</system.web>