« Previous Next »

Answered Thread: Configure IIS 7 to handle ASP framework with appcmd.exe

Last post 03-24-2008 1:35 PM by anilr. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 03-21-2008, 3:41 AM

    • Deward
    • Not Ranked
    • Joined on 03-21-2008, 7:22 AM
    • Posts 2

    Configure IIS 7 to handle ASP framework with appcmd.exe

     I need to use appcmd to configure IIS 7 to handle ASP framework. When I use the following command:

    c:\Windows\System32\inetsrv>appcmd set config -section:IsapiCgiRestriction /+[path='%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll',allowed='true',groupId='ASP.NET v2.0.5072',description='ASP.NET v2.0.50727']

    Then I got the following errors:

    Failed to process input: The parameter 'v2.0.50727']' must begin with a / or - (HRESULT=80070057).

     It's appreciated for any idea.

     
     

     

  • 03-21-2008, 12:02 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Configure IIS 7 to handle ASP framework with appcmd.exe

    You need to type in \\ when you want \ - standard command line escaping rules.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 03-23-2008, 10:47 PM In reply to

    • Deward
    • Not Ranked
    • Joined on 03-21-2008, 7:22 AM
    • Posts 2

    Re: Configure IIS 7 to handle ASP framework with appcmd.exe


    Anilr, thanks for you answer. When I replace \ with \\, the same problem happens. It seems that the space in description syntax "ASP.NET v2.0.50727" causes the problem. When I remove the spaces from groupId and decription syntax, this kind of error is removed. It's confusing.

    I work on 64 bit Vista.
     


     

     


     

  • 03-24-2008, 1:35 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: Configure IIS 7 to handle ASP framework with appcmd.exe

    Again standard parsing of input will split input parameter on a space - you need to surround the whole parameter with double quotes to prevent that

    appcmd set config -section:IsapiCgiRestriction "/+[path='%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll',allowed='true',groupId='ASP.NET v2.0.5072',description='ASP.NET v2.0.50727']"

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (4 items)
Microsoft Communities