« Previous Next »

Answered Thread: Appcmd isapi cgi restrictions

Last post 05-27-2009 10:26 AM by qbernard. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 05-23-2009, 5:47 AM

    Appcmd isapi cgi restrictions

    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 --------------------------------------------------------------------------------

    Lokesh
  • 05-27-2009, 4:38 AM In reply to

    Answered Re: Appcmd isapi cgi restrictions

    i have edited the apphost.config file located in "%systemroot%\system32\inetsrv\config\"

    and it worked fine..

    you can do it using vbscript

    Lokesh
  • 05-27-2009, 10:26 AM In reply to

    Re: Appcmd isapi cgi restrictions

    Well, that's didn't explain why RTM won't work with the R2 syntax you have.. maybe schema updated in R2. not sure... don't have any w2k8 box to test now :)

    Cheers,
    Bernard Cheah
Page 1 of 1 (3 items)
Microsoft Communities