Pour les professionnels de l’informatique > Forums - Accueil > IIS 7.0 > Appcmd isapi and cgi restrictions
Poser une questionPoser une question
 

QuestionAppcmd isapi and cgi restrictions

  • vendredi 22 mai 2009 08:28Lokeswara Rao Majji Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    ·         Allow ASP.NET

    Manual steps

    o   Start-> Run-> inetmgr

    o   Click “Server Name” in left pane

    o   Double click “ISAPI and CGI Restrictions” in right pane

    o   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

Toutes les réponses

  • vendredi 22 mai 2009 13:25Lokeswara Rao Majji Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    ·         Allow ASP.NET

    Manual steps

    o   Start-> Run-> inetmgr

    o   Click “Server Name” in left pane

    o   Double click “ISAPI and CGI Restrictions” in right pane

    o   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


    is there any alternative for allowing asp.net on iis 7.0
    Lokesh