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.
Deward
2 Posts
Configure IIS 7 to handle ASP framework with appcmd.exe
Mar 21, 2008 07:41 AM|LINK
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.
iis7 configuration unc appcmd IIS7
anilr
2343 Posts
Microsoft
Re: Configure IIS 7 to handle ASP framework with appcmd.exe
Mar 21, 2008 04:02 PM|LINK
You need to type in \\ when you want \ - standard command line escaping rules.
Software Design Engineer
IIS Core Server
Deward
2 Posts
Re: Configure IIS 7 to handle ASP framework with appcmd.exe
Mar 24, 2008 02:47 AM|LINK
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.
anilr
2343 Posts
Microsoft
Re: Configure IIS 7 to handle ASP framework with appcmd.exe
Mar 24, 2008 05:35 PM|LINK
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']"
Software Design Engineer
IIS Core Server