Allow ASP.NET on iis 7.0 Manual steps
Start-> Run-> inetmgr o Click “Server Name” in left pane
Double click “ISAPI and CGI Restrictions”
in right pane Check if the Restriction of “ASP.NET v2.0.50727” is allowed,
if not, then right click this entry and select “Allow”
Using APPCMD COMMAND :
appcmd set config /section:isapiCgiRestriction /[path='%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll'].allowed:True
This command has worked in Windows 2008 server R2 system , but when i am trying to execute the command in windows 2008 server its throwing error :
ERROR ( message:Cannot find requested collection element. ) can any one please help in solving this issue --------------------------------------------------------------------------------